File apache-commons-daemon-jsvc.patch of Package apache-commons-daemon

Index: apache-commons-daemon.SUSE_SLE-12_Update/commons-daemon-1.0.15-src/src/native/unix/native/jsvc-unix.c
===================================================================
--- apache-commons-daemon.SUSE_SLE-12_Update.orig/commons-daemon-1.0.15-src/src/native/unix/native/jsvc-unix.c
+++ apache-commons-daemon.SUSE_SLE-12_Update/commons-daemon-1.0.15-src/src/native/unix/native/jsvc-unix.c
@@ -669,7 +669,7 @@ static void create_tmp_file(arg_data *ar
 
     sprintf(buff, "/tmp/%d.jsvc_up", (int)getpid());
     log_debug("create_tmp_file: %s", buff);
-    fd = open(buff, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
+    fd = open(buff, O_RDWR | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR);
     if (fd != -1)
         close(fd);
 }
openSUSE Build Service is sponsored by