From 68b9d88f89dd17af812fdf3a28f357d919c9d9a3 Mon Sep 17 00:00:00 2001 From: Brian Havard Date: Mon, 8 Jan 2001 13:25:02 +0000 Subject: [PATCH] Fix message when the error log file can't be opened. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87610 13f79535-47bb-0310-9956-ffa450edef68 --- server/log.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/server/log.c b/server/log.c index 30435891c0..cba077d353 100644 --- a/server/log.c +++ b/server/log.c @@ -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); -- 2.50.1