]> granicus.if.org Git - php/commitdiff
COPY_WHEN_ABSOLUTE is not needed for NetWare.
authorAnantha Kesari H Y <hyanantha@php.net>
Thu, 7 Jul 2005 06:38:49 +0000 (06:38 +0000)
committerAnantha Kesari H Y <hyanantha@php.net>
Thu, 7 Jul 2005 06:38:49 +0000 (06:38 +0000)
NetWare can understand the file paths with volumnename with a colon, starting with / or \\ as absolute paths.
-- Kamesh

TSRM/tsrm_virtual_cwd.h

index 3fc5475544ef98c70f13f465b42aed7d5c24436b..b2a2ecd559280a2ffd495cde1662d6293016aa25 100644 (file)
@@ -74,10 +74,8 @@ typedef unsigned short mode_t;
 #define DEFAULT_DIR_SEPARATOR  ';'
 #define IS_SLASH(c)    ((c) == '/' || (c) == '\\')
 #define IS_SLASH_P(c)  IS_SLASH(*(c))
-#define COPY_WHEN_ABSOLUTE(path) \
-    (strchr(path, ':') - path + 1)  /* Take the volume name which ends with a colon */
 #define IS_ABSOLUTE_PATH(path, len) \
-    (strchr(path, ':') != NULL) /* Colon indicates volume name */
+    ((strchr(path, ':') != NULL) || ((len >= 1) && ((path[0] == '/') || (path[0] == '\\'))))
 
 #else
 #ifdef HAVE_DIRENT_H