From: Graham Leggett Date: Sat, 27 Feb 2010 18:23:08 +0000 (+0000) Subject: Create the pidfile world readable by adding APR_FPROT_WREAD. Use X-Git-Tag: 2.3.6~432 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=71b4ccfe5a73236a25fb2451400b750bf100237e;p=thirdparty%2Fapache%2Fhttpd.git Create the pidfile world readable by adding APR_FPROT_WREAD. Use non-deprecated versions of the APR constants. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@917005 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/support/htcacheclean.c b/support/htcacheclean.c index 44f6d60113c..469e2ad1301 100644 --- a/support/htcacheclean.c +++ b/support/htcacheclean.c @@ -764,9 +764,10 @@ static void log_pid(apr_pool_t *pool, const char *pidfilename, apr_file_t **pidf 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 {