You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ma...@apache.org on 2017/10/20 15:33:14 UTC

svn commit: r1812755 - in /commons/proper/daemon/trunk/src: changes/changes.xml native/unix/native/jsvc-unix.c

Author: markt
Date: Fri Oct 20 15:33:14 2017
New Revision: 1812755

URL: http://svn.apache.org/viewvc?rev=1812755&view=rev
Log:
Fix DAEMON-318
Ensure that the child process is started with the correct umask.
Patch provided by Markus Schneider.

Modified:
    commons/proper/daemon/trunk/src/changes/changes.xml
    commons/proper/daemon/trunk/src/native/unix/native/jsvc-unix.c

Modified: commons/proper/daemon/trunk/src/changes/changes.xml
URL: http://svn.apache.org/viewvc/commons/proper/daemon/trunk/src/changes/changes.xml?rev=1812755&r1=1812754&r2=1812755&view=diff
==============================================================================
--- commons/proper/daemon/trunk/src/changes/changes.xml (original)
+++ commons/proper/daemon/trunk/src/changes/changes.xml Fri Oct 20 15:33:14 2017
@@ -92,6 +92,9 @@
         that if the JVM crashes after a signal has been received to shut down
         jsvc does not attempt to restart the JVM.
       </action>
+      <action issue="DAEMON-318" type="fix" dev="markt" due-to="Markus Schneider">
+        Ensure that the child process is started with the correct umask. 
+      </action>
     </release>
   </body>
 </document>

Modified: commons/proper/daemon/trunk/src/native/unix/native/jsvc-unix.c
URL: http://svn.apache.org/viewvc/commons/proper/daemon/trunk/src/native/unix/native/jsvc-unix.c?rev=1812755&r1=1812754&r2=1812755&view=diff
==============================================================================
--- commons/proper/daemon/trunk/src/native/unix/native/jsvc-unix.c (original)
+++ commons/proper/daemon/trunk/src/native/unix/native/jsvc-unix.c Fri Oct 20 15:33:14 2017
@@ -849,7 +849,6 @@ static int child(arg_data *args, home_da
 #endif
 
     /* Start the service */
-    umask(envmask);
     if (java_start() != true) {
         log_debug("java_start failed");
         return 5;