diff options
author | Graham Leggett <minfrin@apache.org> | 2010-02-27 18:23:08 +0000 |
---|---|---|
committer | Graham Leggett <minfrin@apache.org> | 2010-02-27 18:23:08 +0000 |
commit | 71b4ccfe5a73236a25fb2451400b750bf100237e (patch) | |
tree | 61d66d98959ded812dd826644dc58df388044799 /support | |
parent | 302e2d7a214bb17ee8cc6d19807e5f202040000b (diff) | |
download | httpd-71b4ccfe5a73236a25fb2451400b750bf100237e.tar.gz |
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
Diffstat (limited to 'support')
-rw-r--r-- | support/htcacheclean.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/support/htcacheclean.c b/support/htcacheclean.c index 44f6d60113..469e2ad130 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 { |