aboutsummaryrefslogtreecommitdiffstats
path: root/main/fprobe/fprobe-1.1-setgroups.patch
blob: 969681243788d73cdf78831c89ab2c63d4002f13 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
This seems to fail after the chroot(), so just squelch the exit for now.

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>

diff -Nuar fprobe-1.1/src/fprobe.c fprobe-1.1.new/src/fprobe.c
--- fprobe-1.1/src/fprobe.c	2008-03-17 00:06:43.000000000 +0000
+++ fprobe-1.1.new/src/fprobe.c	2008-03-17 00:07:30.000000000 +0000
@@ -1541,10 +1541,10 @@
 	}
 
 	if (pw) {
		if (setgroups(0, NULL) < 0) {
			my_log(LOG_CRIT, "setgroups: %s", strerror(errno));
-			exit(1);
+			//exit(1);
		}
 		if (setregid(pw->pw_gid, pw->pw_gid)) {
 			my_log(LOG_CRIT, "setregid(%u): %s", pw->pw_gid, strerror(errno));
 			exit(1);