]> granicus.if.org Git - apache/commitdiff
no need to open error log for reading
authorJeff Trawick <trawick@apache.org>
Mon, 14 Jul 2003 14:48:40 +0000 (14:48 +0000)
committerJeff Trawick <trawick@apache.org>
Mon, 14 Jul 2003 14:48:40 +0000 (14:48 +0000)
Submitted by: Bjoern A. Zeeb
Reviewed by: Jeff Trawick, who added the same change to another path

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@100594 13f79535-47bb-0310-9956-ffa450edef68

server/log.c

index 41dbb5b1aa24b7d1be43220a0c28f8d0598cca46..d23753ee93d09d5181217b6f00b491d73b1ef5b4 100644 (file)
@@ -200,7 +200,7 @@ AP_DECLARE(apr_status_t) ap_replace_stderr_log(apr_pool_t *p,
         return APR_EBADPATH;
     }
     if ((rc = apr_file_open(&stderr_file, filename,
-                            APR_APPEND | APR_READ | APR_WRITE | APR_CREATE,
+                            APR_APPEND | APR_WRITE | APR_CREATE,
                             APR_OS_DEFAULT, p)) != APR_SUCCESS) {
         ap_log_error(APLOG_MARK, APLOG_STARTUP, rc, NULL,
                      "%s: could not open error log file %s.",
@@ -313,7 +313,7 @@ static int open_error_log(server_rec *s, apr_pool_t *p)
             return DONE;
         }
         if ((rc = apr_file_open(&s->error_log, fname,
-                               APR_APPEND | APR_READ | APR_WRITE | APR_CREATE,
+                               APR_APPEND | APR_WRITE | APR_CREATE,
                                APR_OS_DEFAULT, p)) != APR_SUCCESS) {
             ap_log_error(APLOG_MARK, APLOG_STARTUP, rc, NULL,
                          "%s: could not open error log file %s.",