]> granicus.if.org Git - apache/commitdiff
Fix message when the error log file can't be opened.
authorBrian Havard <bjh@apache.org>
Mon, 8 Jan 2001 13:25:02 +0000 (13:25 +0000)
committerBrian Havard <bjh@apache.org>
Mon, 8 Jan 2001 13:25:02 +0000 (13:25 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87610 13f79535-47bb-0310-9956-ffa450edef68

server/log.c

index 30435891c0a0b202c38bdd3bd44f45c8b8d0102b..cba077d3538b9dba7c727530f0687386000c977c 100644 (file)
@@ -267,11 +267,11 @@ static void open_error_log(server_rec *s, apr_pool_t *p)
 #endif
     else {
        fname = ap_server_root_relative(p, s->error_fname);
-       /*  Change to AP funcs. */
-        if (apr_open(&s->error_log, fname, APR_APPEND | 
-                    APR_READ | APR_WRITE | APR_CREATE, APR_OS_DEFAULT, p) != APR_SUCCESS) {
-            perror("fopen");
-            ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_NOERRNO, 0, NULL, 
+        rc = apr_open(&s->error_log, fname, 
+                      APR_APPEND | APR_READ | APR_WRITE | APR_CREATE,
+                      APR_OS_DEFAULT, p);
+        if (rc != APR_SUCCESS) {
+            ap_log_error(APLOG_MARK, APLOG_STARTUP, rc, NULL, 
                          "%s: could not open error log file %s.",
                         ap_server_argv0, fname);
             exit(1);