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

index 7c5f1c692549ef1a387c89ae6977410901c35c74..c37e8a89e99b8f85b8b659007567f9bd7435d6d2 100644 (file)
@@ -61,10 +61,10 @@ typedef unsigned short mode_t;
  * to account for volume name that is unique to NetWare absolute paths
  */
 #define COPY_WHEN_ABSOLUTE(path) 2
-#define IS_ABSOLUTE_PATH(path, len) \
-       (len >= 2 && ((isalpha(path[0]) && path[1] == ':') || (IS_SLASH(path[0]) && IS_SLASH(path[1]))))
 #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 >= 1 && IS_SLASH(path[0])))
 
 #elif defined(NETWARE)
 #ifdef HAVE_DIRENT_H