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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]