]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
the error code is in the apr_status_t, not errno
authorJeff Trawick <trawick@apache.org>
Thu, 24 Apr 2003 13:41:06 +0000 (13:41 +0000)
committerJeff Trawick <trawick@apache.org>
Thu, 24 Apr 2003 13:41:06 +0000 (13:41 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@99573 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/prefork/prefork.c

index f498c6f5645bc00da04a6b67fa5716d3f1f76d6c..a1612712bf1e386722308998164aef10b9927e40 100644 (file)
@@ -207,7 +207,7 @@ static void chdir_for_gprof(void)
        use_dir = ap_server_root_relative(pconf, buf[0] ? buf : dir);
        res = apr_dir_make(use_dir, 0755, pconf);
        if(res != APR_SUCCESS && !APR_STATUS_IS_EEXIST(res)) {
-           ap_log_error(APLOG_MARK, APLOG_ERR, errno, ap_server_conf,
+           ap_log_error(APLOG_MARK, APLOG_ERR, res, ap_server_conf,
                         "gprof: error creating directory %s", dir);
        }
     }