fielding 99/08/27 19:51:32
Modified: src/main http_core.c
Log:
Reverse a change that was made in rev 1.227 because the old version
was better (and consistent with what was left in Apache 2.0).
Revision Changes Path
1.272 +4 -10 apache-1.3/src/main/http_core.c
Index: http_core.c
===================================================================
RCS file: /home/cvs/apache-1.3/src/main/http_core.c,v
retrieving revision 1.271
retrieving revision 1.272
diff -u -r1.271 -r1.272
--- http_core.c 1999/08/09 07:29:29 1.271
+++ http_core.c 1999/08/28 02:51:31 1.272
@@ -3037,16 +3037,10 @@
}
if (r->finfo.st_mode == 0 || (r->path_info && *r->path_info)) {
- char *emsg;
-
- emsg = "File does not exist: ";
- if (r->path_info == NULL) {
- emsg = ap_pstrcat(r->pool, emsg, r->filename, NULL);
- }
- else {
- emsg = ap_pstrcat(r->pool, emsg, r->filename, r->path_info, NULL);
- }
- ap_log_rerror(APLOG_MARK, APLOG_ERR|APLOG_NOERRNO, r, "%s", emsg);
+ ap_log_rerror(APLOG_MARK, APLOG_ERR|APLOG_NOERRNO, r,
+ "File does not exist: %s",r->path_info ?
+ ap_pstrcat(r->pool, r->filename, r->path_info, NULL)
+ : r->filename);
return HTTP_NOT_FOUND;
}
if (r->method_number != M_GET) {