httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s.@apache.org
Subject svn commit: r1225223 - /httpd/httpd/trunk/server/core.c
Date Wed, 28 Dec 2011 16:33:11 GMT
Author: sf
Date: Wed Dec 28 16:33:11 2011
New Revision: 1225223

URL: http://svn.apache.org/viewvc?rev=1225223&view=rev
Log:
Fix handling of piped, syslog, or inherited ErrorLog entries

Modified:
    httpd/httpd/trunk/server/core.c

Modified: httpd/httpd/trunk/server/core.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/core.c?rev=1225223&r1=1225222&r2=1225223&view=diff
==============================================================================
--- httpd/httpd/trunk/server/core.c (original)
+++ httpd/httpd/trunk/server/core.c Wed Dec 28 16:33:11 2011
@@ -4344,7 +4344,8 @@ AP_DECLARE(int) ap_sys_privileges_handle
 
 static int check_errorlog_dir(apr_pool_t *p, server_rec *s)
 {
-    if (s->error_fname[0] == '|' && strcmp(s->error_fname, "syslog") == 0)
{
+    if (!s->error_fname || s->error_fname[0] == '|'
+        || strcmp(s->error_fname, "syslog") == 0) {
         return APR_SUCCESS;
     }
     else {



Mime
View raw message