summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-java/commons-daemon/files/1.0.1-capabilities-non-root.patch')
-rw-r--r--dev-java/commons-daemon/files/1.0.1-capabilities-non-root.patch11
1 files changed, 0 insertions, 11 deletions
diff --git a/dev-java/commons-daemon/files/1.0.1-capabilities-non-root.patch b/dev-java/commons-daemon/files/1.0.1-capabilities-non-root.patch
deleted file mode 100644
index 5a9566b91676..000000000000
--- a/dev-java/commons-daemon/files/1.0.1-capabilities-non-root.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- daemon-1.0.1/src/native/unix/native/jsvc-unix.c.orig 2007-01-20 12:08:52.000000000 +0100
-+++ daemon-1.0.1/src/native/unix/native/jsvc-unix.c 2007-01-20 12:12:35.000000000 +0100
-@@ -475,7 +475,7 @@
-
- #ifdef OS_LINUX
- /* setuid()/setgid() only apply the current thread so we must do it now */
-- if (linuxset_user_group(args->user,uid,gid)!=0)
-+ if (getuid()==0 && linuxset_user_group(args->user,uid,gid)!=0)
- return(4);
- #endif
- /* Initialize the Java VM */