32 lines
1.1 KiB
Diff
32 lines
1.1 KiB
Diff
diff -Nur --no-dereference net.old/ipsvd-0.12.1/src/chkshsgr.c net/ipsvd-0.12.1/src/chkshsgr.c
|
|
--- net.old/ipsvd-0.12.1/src/chkshsgr.c 2006-02-04 14:16:47.000000000 -0500
|
|
+++ net/ipsvd-0.12.1/src/chkshsgr.c 2024-03-19 22:42:05.060000000 -0400
|
|
@@ -1,10 +1,13 @@
|
|
/* Public domain. */
|
|
|
|
+#include <sys/types.h>
|
|
+#include <stdlib.h>
|
|
+#include <grp.h>
|
|
#include <unistd.h>
|
|
|
|
-int main()
|
|
+int main(int argc, char *argv[])
|
|
{
|
|
- short x[4];
|
|
+ gid_t x[4];
|
|
|
|
x[0] = x[1] = 0;
|
|
if (getgroups(1,x) == 0) if (setgroups(1,x) == -1) _exit(1);
|
|
diff -Nur --no-dereference net.old/ipsvd-0.12.1/src/Makefile net/ipsvd-0.12.1/src/Makefile
|
|
--- net.old/ipsvd-0.12.1/src/Makefile 2006-02-04 14:16:47.000000000 -0500
|
|
+++ net/ipsvd-0.12.1/src/Makefile 2024-03-19 22:41:21.490000000 -0400
|
|
@@ -327,7 +327,7 @@
|
|
|
|
hasshsgr.h: chkshsgr choose compile hasshsgr.h1 hasshsgr.h2 load tryshsgr.c \
|
|
warn-shsgr
|
|
- ./chkshsgr || (cat warn-shsgr; exit 1)
|
|
+ echo "Warning: We can not run test on cross target. - ignoring ./chkshsgr || (cat warn-shsgr; exit 1)"
|
|
./choose clr tryshsgr hasshsgr.h1 hasshsgr.h2 >hasshsgr.h
|
|
|
|
haswaitp.h: choose compile haswaitp.h1 haswaitp.h2 load trywaitp.c
|