You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Marc Slemko <ma...@znep.com> on 1998/01/11 07:29:02 UTC

[PATCH] don't log bogus errno when file doesn't exist

Sometimes it may end up being right, other times it won't.

Index: http_core.c
===================================================================
RCS file: /export/home/cvs/apachen/src/main/http_core.c,v
retrieving revision 1.145
diff -u -r1.145 http_core.c
--- http_core.c	1998/01/07 16:46:04	1.145
+++ http_core.c	1998/01/11 06:28:05
@@ -1842,8 +1842,9 @@
     if (r->method_number == M_PUT) return METHOD_NOT_ALLOWED;
 
     if (r->finfo.st_mode == 0 || (r->path_info && *r->path_info)) {
-	aplog_error(APLOG_MARK, APLOG_ERR, r->server, "File does not exist: %s",
-		    r->path_info ? pstrcat(r->pool, r->filename, r->path_info, NULL)
+	aplog_error(APLOG_MARK, APLOG_ERR|APLOG_NOERRNO, r->server, 
+                    "File does not exist: %s", r->path_info ? 
+                    pstrcat(r->pool, r->filename, r->path_info, NULL)
 		    : r->filename);
 	return NOT_FOUND;
     }