randy 97/08/31 16:15:54
Modified: src/modules/standard mod_imap.c
Log:
Convert log_*() to aplog_error().
Revision Changes Path
1.30 +6 -3 apachen/src/modules/standard/mod_imap.c
Index: mod_imap.c
===================================================================
RCS file: /export/home/cvs/apachen/src/modules/standard/mod_imap.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- mod_imap.c 1997/08/18 13:12:12 1.29
+++ mod_imap.c 1997/08/31 23:15:52 1.30
@@ -422,11 +422,13 @@
return;
}
- strncpy(my_base, base, sizeof(my_base)-1); /* must be a relative URL to
be combined with base */
+ /* must be a relative URL to be combined with base */
+ strncpy(my_base, base, sizeof(my_base)-1);
my_base[sizeof(my_base)-1] = '\0';
if (strchr(my_base, '/') == NULL && (!strncmp(value, "../", 3) ||
!strcmp(value, "..")) ) {
url[0] = '\0';
- log_reason("invalid base directive in map file", r->uri, r);
+ aplog_error(APLOG_MARK, APLOG_ERR, r->server,
+ "invalid base directive in map file: %s", r->uri);
return;
}
string_pos = my_base;
@@ -477,7 +479,8 @@
value += 2; /* jump over the '..' that we found in the value */
} else if (directory) {
url[0] = '\0';
- log_reason("invalid directory name in map file", r->uri, r);
+ aplog_error(APLOG_MARK, APLOG_ERR, r->server,
+ "invalid directory name in map file: %s", r->uri);
return;
}