httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From minf...@apache.org
Subject svn commit: r917005 - /httpd/httpd/trunk/support/htcacheclean.c
Date Sat, 27 Feb 2010 18:23:08 GMT
Author: minfrin
Date: Sat Feb 27 18:23:08 2010
New Revision: 917005

URL: http://svn.apache.org/viewvc?rev=917005&view=rev
Log:
Create the pidfile world readable by adding APR_FPROT_WREAD. Use
non-deprecated versions of the APR constants.

Modified:
    httpd/httpd/trunk/support/htcacheclean.c

Modified: httpd/httpd/trunk/support/htcacheclean.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/support/htcacheclean.c?rev=917005&r1=917004&r2=917005&view=diff
==============================================================================
--- httpd/httpd/trunk/support/htcacheclean.c (original)
+++ httpd/httpd/trunk/support/htcacheclean.c Sat Feb 27 18:23:08 2010
@@ -764,9 +764,10 @@
     char errmsg[120];
     pid_t mypid = getpid();
 
-    if (APR_SUCCESS == (status = apr_file_open(pidfile, pidfilename, APR_WRITE
-                | APR_CREATE | APR_TRUNCATE | APR_DELONCLOSE,
-                APR_UREAD | APR_UWRITE | APR_GREAD, pool))) {
+    if (APR_SUCCESS == (status = apr_file_open(pidfile, pidfilename,
+                APR_FOPEN_WRITE | APR_FOPEN_CREATE | APR_FOPEN_TRUNCATE |
+                APR_FOPEN_DELONCLOSE, APR_FPROT_UREAD | APR_FPROT_UWRITE |
+                APR_FPROT_GREAD | APR_FPROT_WREAD, pool))) {
         apr_file_printf(*pidfile, "%" APR_PID_T_FMT APR_EOL_STR, mypid);
     }
     else {



Mime
View raw message