From: Bill Stoddard Date: Tue, 3 Jun 2003 18:05:20 +0000 (+0000) Subject: Win32: Whack the fully qualified names that appear in the log when X-Git-Tag: pre_ajp_proxy~1577 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9abecdf4e79be689b2b4e41f9df5080f2d322715;p=apache Win32: Whack the fully qualified names that appear in the log when loglevel debug is being used. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@100153 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/log.c b/server/log.c index 95ab4aa2e8..41dbb5b1aa 100644 --- a/server/log.c +++ b/server/log.c @@ -473,9 +473,14 @@ static void log_error_core(const char *file, int line, int level, #ifndef TPF if (file && level_and_mask == APLOG_DEBUG) { -#ifdef _OSD_POSIX +#if defined(_OSD_POSIX) || defined(WIN32) char tmp[256]; char *e = strrchr(file, '/'); +#ifdef WIN32 + if (!e) { + e = strrchr(file, '\\'); + } +#endif /* In OSD/POSIX, the compiler returns for __FILE__ * a string like: __FILE__="*POSIX(/usr/include/stdio.h)"