From: Yann Ylavic Date: Tue, 12 May 2020 11:33:54 +0000 (+0000) Subject: ap_log_pid(): Windown does not implement apr_file_perms_set(), not a failure. X-Git-Tag: 2.5.0-alpha2-ci-test-only~1446 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ea7074ba1d860e4746bdc513d8deb8a2d408b8d;p=thirdparty%2Fapache%2Fhttpd.git ap_log_pid(): Windown does not implement apr_file_perms_set(), not a failure. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1877645 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/log.c b/server/log.c index cc32f58bc5a..9ebbebd87a4 100644 --- a/server/log.c +++ b/server/log.c @@ -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) {