From: Bill Stoddard Date: Fri, 24 Sep 1999 21:21:20 +0000 (+0000) Subject: Fix some broken logic. This logic now replicates what is in Apache 1.3. X-Git-Tag: 1.3.10~317 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76eaf4d395d872f25c6b270d489881b50608f442;p=thirdparty%2Fapache%2Fhttpd.git Fix some broken logic. This logic now replicates what is in Apache 1.3. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83917 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/util.c b/server/util.c index a44632e2a71..ab897f06af0 100644 --- a/server/util.c +++ b/server/util.c @@ -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,