31 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
| diff -Nur --no-dereference qmail-1.03.old/chkshsgr.c qmail-1.03/chkshsgr.c
 | |
| --- qmail-1.03.old/chkshsgr.c	1998-06-15 06:53:16.000000000 -0400
 | |
| +++ qmail-1.03/chkshsgr.c	2024-03-19 16:21:21.624000000 -0400
 | |
| @@ -1,7 +1,12 @@
 | |
|  #include "exit.h"
 | |
| -void main()
 | |
| +#include <sys/types.h>
 | |
| +#include <stdlib.h>
 | |
| +#include <grp.h>
 | |
| +#include <unistd.h>
 | |
| +
 | |
| +void 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 qmail-1.03.old/Makefile qmail-1.03/Makefile
 | |
| --- qmail-1.03.old/Makefile	1998-06-15 06:53:16.000000000 -0400
 | |
| +++ qmail-1.03/Makefile	2024-03-19 16:22:11.180000000 -0400
 | |
| @@ -678,7 +678,7 @@
 | |
|  
 | |
|  hasshsgr.h: \
 | |
|  chkshsgr warn-shsgr tryshsgr.c compile load
 | |
| -	./chkshsgr || ( cat warn-shsgr; exit 1 )
 | |
| +	echo "Warning: We can not run test on cross target. - ignoring ./chkshsgr || ( cat warn-shsgr; exit 1 )"
 | |
|  	( ( ./compile tryshsgr.c \
 | |
|  	&& ./load tryshsgr && ./tryshsgr ) >/dev/null 2>&1 \
 | |
|  	&& echo \#define HASSHORTSETGROUPS 1 || exit 0 ) > \
 |