aboutsummaryrefslogtreecommitdiffstats
path: root/main/fprobe/fprobe-1.1-setgroups.patch
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@gmail.com>2010-11-26 09:25:51 +0000
committerLeonardo Arena <rnalrd@gmail.com>2010-11-26 09:26:16 +0000
commitc315da486a9ecf4b696be7bb982aeb0a9c0ecb0b (patch)
tree4d2ce7d3eb896ccf0fb04fe14afe97f2b967575d /main/fprobe/fprobe-1.1-setgroups.patch
parent704d9829495d7810b378409aaa6e4346342a5c35 (diff)
downloadaports-c315da486a9ecf4b696be7bb982aeb0a9c0ecb0b.tar.gz
aports-c315da486a9ecf4b696be7bb982aeb0a9c0ecb0b.tar.bz2
aports-c315da486a9ecf4b696be7bb982aeb0a9c0ecb0b.tar.xz
main/fprobe: fix pid creation
Diffstat (limited to 'main/fprobe/fprobe-1.1-setgroups.patch')
-rw-r--r--main/fprobe/fprobe-1.1-setgroups.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/main/fprobe/fprobe-1.1-setgroups.patch b/main/fprobe/fprobe-1.1-setgroups.patch
new file mode 100644
index 0000000000..9696812437
--- /dev/null
+++ b/main/fprobe/fprobe-1.1-setgroups.patch
@@ -0,0 +1,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);