]> granicus.if.org Git - apache/commitdiff
Fix some broken logic. This logic now replicates what is in Apache 1.3.
authorBill Stoddard <stoddard@apache.org>
Fri, 24 Sep 1999 21:21:20 +0000 (21:21 +0000)
committerBill Stoddard <stoddard@apache.org>
Fri, 24 Sep 1999 21:21:20 +0000 (21:21 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83917 13f79535-47bb-0310-9956-ffa450edef68

server/util.c

index a44632e2a71f9300a542a92b2847bb357a8eadaa..ab897f06af0622825ed719be66eb1a81037fed2f 100644 (file)
@@ -897,13 +897,13 @@ API_EXPORT(configfile_t *) ap_pcfg_openfile(ap_context_t *p, const char *name)
         return NULL;
 
     if (ap_get_filetype(file, &type) == APR_SUCCESS &&
-        type == APR_REG &&
+        type != APR_REG &&
 #if defined(WIN32) || defined(OS2)
         !(strcasecmp(name, "nul") == 0 ||
           (strlen(name) >= 4 &&
            strcasecmp(name + strlen(name) - 4, "/nul") == 0))) {
 #else
-        strcmp(name, "/dev/null") == 0) {
+        strcmp(name, "/dev/null") != 0) {
 #endif /* WIN32 || OS2 */
        saved_errno = errno;
         ap_log_error(APLOG_MARK, APLOG_ERR | APLOG_NOERRNO, NULL,