]> granicus.if.org Git - php/commitdiff
Fixed bug #25583 (Incorrect handling of absolute path without drive).
authorIlia Alshanetsky <iliaa@php.net>
Sat, 20 Sep 2003 01:39:55 +0000 (01:39 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Sat, 20 Sep 2003 01:39:55 +0000 (01:39 +0000)
TSRM/tsrm_virtual_cwd.h

index 999bfe247bbfb441888f30203232df8c66cad089..c06f7b375cc122b95b4bb495a7146ef1f84b8651 100644 (file)
@@ -63,7 +63,7 @@ typedef unsigned short mode_t;
 #define IS_UNC_PATH(path, len) \
        (len >= 2 && IS_SLASH(path[0]) && IS_SLASH(path[1]))
 #define IS_ABSOLUTE_PATH(path, len) \
-       (len >= 2 && ((isalpha(path[0]) && path[1] == ':') || IS_UNC_PATH(path, len)))
+       ((len >= 2 && ((isalpha(path[0]) && path[1] == ':') || IS_UNC_PATH(path, len))) || (len >= 1 && IS_SLASH(path[0])))
 
 #elif defined(NETWARE)
 #ifdef HAVE_DIRENT_H