]> granicus.if.org Git - apache/commitdiff
Win32: Whack the fully qualified names that appear in the log when
authorBill Stoddard <stoddard@apache.org>
Tue, 3 Jun 2003 18:05:20 +0000 (18:05 +0000)
committerBill Stoddard <stoddard@apache.org>
Tue, 3 Jun 2003 18:05:20 +0000 (18:05 +0000)
loglevel debug is being used.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@100153 13f79535-47bb-0310-9956-ffa450edef68

server/log.c

index 95ab4aa2e8edda408f041616cc88362754594ac6..41dbb5b1aa24b7d1be43220a0c28f8d0598cca46 100644 (file)
@@ -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)"