]> granicus.if.org Git - apache/commitdiff
ugh! Fix log open error condition, which never matched.
authorAndré Malo <nd@apache.org>
Sat, 21 Feb 2004 15:53:49 +0000 (15:53 +0000)
committerAndré Malo <nd@apache.org>
Sat, 21 Feb 2004 15:53:49 +0000 (15:53 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102728 13f79535-47bb-0310-9956-ffa450edef68

modules/loggers/mod_log_forensic.c

index 93e53d4c0069fe7e0ba86b469801b2be63eb9d9d..c125cd2ed7a3197bdeb63010738e8207a60148f2 100644 (file)
@@ -90,8 +90,7 @@ static void open_log(server_rec *s, apr_pool_t *p)
 
         if ((rv = apr_file_open(&cfg->fd, fname,
                                 APR_WRITE | APR_APPEND | APR_CREATE,
-                                APR_OS_DEFAULT, p) != APR_SUCCESS)
-            < 0) {
+                                APR_OS_DEFAULT, p)) != APR_SUCCESS) {
             ap_log_error(APLOG_MARK, APLOG_ERR, rv, s,
                          "could not open forensic log file %s.", fname);
             exit(1);