commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jfcl...@apache.org
Subject svn commit: r354524 - /jakarta/commons/proper/daemon/trunk/src/native/unix/native/jsvc-unix.c
Date Tue, 06 Dec 2005 19:47:43 GMT
Author: jfclere
Date: Tue Dec  6 11:47:38 2005
New Revision: 354524

URL: http://svn.apache.org/viewcvs?rev=354524&view=rev
Log:
Fix 36058.

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

Modified: jakarta/commons/proper/daemon/trunk/src/native/unix/native/jsvc-unix.c
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/daemon/trunk/src/native/unix/native/jsvc-unix.c?rev=354524&r1=354523&r2=354524&view=diff
==============================================================================
--- jakarta/commons/proper/daemon/trunk/src/native/unix/native/jsvc-unix.c (original)
+++ jakarta/commons/proper/daemon/trunk/src/native/unix/native/jsvc-unix.c Tue Dec  6 11:47:38
2005
@@ -35,6 +35,8 @@
 
 extern char **environ;
 
+static mode_t envmask; /* mask to create the files */
+
 pid_t controlled=0; /* the son process pid */
 static bool stopping=false;
 static bool doreload=false;
@@ -519,6 +521,7 @@
 #endif
 
     /* Start the service */
+    umask(envmask);
     if (java_start()!=true) {
         log_debug("java_start failed");
         return(5);
@@ -709,6 +712,7 @@
 #endif
     }
 
+    envmask = umask(0077);
     set_output(args->outfile, args->errfile);
 
     /* We have to fork: this process will become the controller and the other



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message