diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2002-11-14 13:45:08 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2002-11-14 13:45:08 +0000 |
commit | 8bfe7d76ea93dc3706c7d02f626c28b4f835bbe8 (patch) | |
tree | e7ba91cc92b51eed78a53de432128aa7c6407567 /TSRM/tsrm_virtual_cwd.h | |
parent | 6b7d77a7a026f8eb03881537d721ca66eaf54949 (diff) | |
download | php-git-8bfe7d76ea93dc3706c7d02f626c28b4f835bbe8.tar.gz |
Fix bug 19689, solution suggested by dmitry@koteroff.ru.
Diffstat (limited to 'TSRM/tsrm_virtual_cwd.h')
-rw-r--r-- | TSRM/tsrm_virtual_cwd.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/TSRM/tsrm_virtual_cwd.h b/TSRM/tsrm_virtual_cwd.h index 2465d81b6d..6ec9da6973 100644 --- a/TSRM/tsrm_virtual_cwd.h +++ b/TSRM/tsrm_virtual_cwd.h @@ -58,7 +58,7 @@ typedef unsigned short mode_t; */ #define COPY_WHEN_ABSOLUTE(path) 2 #define IS_ABSOLUTE_PATH(path, len) \ - (len >= 2 && isalpha(path[0]) && path[1] == ':') + ((len >= 2 && isalpha(path[0]) && path[1] == ':') || (len >= 1 && IS_SLASH(path[0]))) #define IS_UNC_PATH(path, len) \ (len >= 2 && IS_SLASH(path[0]) && IS_SLASH(path[1])) |