]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
ap_log_pid(): Windown does not implement apr_file_perms_set(), not a failure.
authorYann Ylavic <ylavic@apache.org>
Tue, 12 May 2020 11:33:54 +0000 (11:33 +0000)
committerYann Ylavic <ylavic@apache.org>
Tue, 12 May 2020 11:33:54 +0000 (11:33 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1877645 13f79535-47bb-0310-9956-ffa450edef68

server/log.c

index cc32f58bc5aebcdbd88a386444b58a8b06e99e21..9ebbebd87a410ba1add0954040c67a09c1e92992 100644 (file)
@@ -1570,7 +1570,7 @@ AP_DECLARE(void) ap_log_pid(apr_pool_t *p, const char *filename)
     apr_snprintf(pidstr, sizeof pidstr, "%" APR_PID_T_FMT APR_EOL_STR, mypid);
 
     perms = APR_UREAD | APR_UWRITE | APR_GREAD | APR_WREAD;
-    if ((rv = apr_file_perms_set(temp_fname, perms)) != APR_SUCCESS
+    if (((rv = apr_file_perms_set(temp_fname, perms)) != APR_SUCCESS && rv != APR_ENOTIMPL)
         || (rv = apr_file_write_full(pid_file, pidstr, strlen(pidstr), NULL)) != APR_SUCCESS
         || (rv = apr_file_close(pid_file)) != APR_SUCCESS
         || (rv = apr_file_rename(temp_fname, fname, p)) != APR_SUCCESS) {