summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-java/commons-daemon/files/1.0.1-execve-self.patch')
-rw-r--r--dev-java/commons-daemon/files/1.0.1-execve-self.patch10
1 files changed, 10 insertions, 0 deletions
diff --git a/dev-java/commons-daemon/files/1.0.1-execve-self.patch b/dev-java/commons-daemon/files/1.0.1-execve-self.patch
new file mode 100644
index 000000000000..578d2e021e8f
--- /dev/null
+++ b/dev-java/commons-daemon/files/1.0.1-execve-self.patch
@@ -0,0 +1,10 @@
+--- 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 13:15:43.000000000 +0100
+@@ -652,6 +652,7 @@
+ log_debug("Invoking w/ LD_LIBRARY_PATH=%s",getenv("LD_LIBRARY_PATH"));
+
+ argv[0]=args->procname;
++ execve("/proc/self/exe",argv,environ);
+ execve(old,argv,environ);
+ log_error("Cannot execute JSVC executor process");
+ return(1);