From: Anantha Kesari H Y Date: Thu, 7 Jul 2005 06:38:49 +0000 (+0000) Subject: COPY_WHEN_ABSOLUTE is not needed for NetWare. X-Git-Tag: php-5.0.5RC1~72 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e0cfa4d51b1a37fc3582e8de335aa0d36f68e9c3;p=php COPY_WHEN_ABSOLUTE is not needed for NetWare. NetWare can understand the file paths with volumnename with a colon, starting with / or \\ as absolute paths. -- Kamesh --- diff --git a/TSRM/tsrm_virtual_cwd.h b/TSRM/tsrm_virtual_cwd.h index 3fc5475544..b2a2ecd559 100644 --- a/TSRM/tsrm_virtual_cwd.h +++ b/TSRM/tsrm_virtual_cwd.h @@ -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