commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r1411540 - /commons/proper/daemon/branches/1.0.x/src/native/unix/native/jsvc-unix.c
Date Tue, 20 Nov 2012 05:25:58 GMT
Author: mturk
Date: Tue Nov 20 05:25:57 2012
New Revision: 1411540

URL: http://svn.apache.org/viewvc?rev=1411540&view=rev
Log:
pidfile does not contain sensitive data. Make it with 644 access

Modified:
    commons/proper/daemon/branches/1.0.x/src/native/unix/native/jsvc-unix.c

Modified: commons/proper/daemon/branches/1.0.x/src/native/unix/native/jsvc-unix.c
URL: http://svn.apache.org/viewvc/commons/proper/daemon/branches/1.0.x/src/native/unix/native/jsvc-unix.c?rev=1411540&r1=1411539&r2=1411540&view=diff
==============================================================================
--- commons/proper/daemon/branches/1.0.x/src/native/unix/native/jsvc-unix.c (original)
+++ commons/proper/daemon/branches/1.0.x/src/native/unix/native/jsvc-unix.c Tue Nov 20 05:25:57
2012
@@ -502,7 +502,7 @@ static int check_pid(arg_data *args)
     pid_t pidn = getpid();
     int i, pid;
 
-    fd = open(args->pidf, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR);
+    fd = open(args->pidf, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
     if (fd < 0) {
         log_error("Cannot open PID file %s, PID is %d", args->pidf, pidn);
         return -1;



Mime
View raw message