summaryrefslogtreecommitdiff
path: root/TSRM/tsrm_virtual_cwd.h
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2003-09-20 01:39:55 +0000
committerIlia Alshanetsky <iliaa@php.net>2003-09-20 01:39:55 +0000
commit142c325f2321f771a3c10fc0bc91c34ba9288dc6 (patch)
tree068eb840f77aa3d1f3f9f96ea39a147d903201a3 /TSRM/tsrm_virtual_cwd.h
parent1e97cb938e61cddc534cba5b417b526a68f42fe8 (diff)
downloadphp-git-142c325f2321f771a3c10fc0bc91c34ba9288dc6.tar.gz
Fixed bug #25583 (Incorrect handling of absolute path without drive).
Diffstat (limited to 'TSRM/tsrm_virtual_cwd.h')
-rw-r--r--TSRM/tsrm_virtual_cwd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/TSRM/tsrm_virtual_cwd.h b/TSRM/tsrm_virtual_cwd.h
index 999bfe247b..c06f7b375c 100644
--- a/TSRM/tsrm_virtual_cwd.h
+++ b/TSRM/tsrm_virtual_cwd.h
@@ -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