summaryrefslogtreecommitdiff
path: root/TSRM
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2000-10-03 15:08:37 +0000
committerAndi Gutmans <andi@php.net>2000-10-03 15:08:37 +0000
commit3dab84005d8b70190e35776e6609585ee4d285c3 (patch)
tree0a38d6d0cfe1245da4c15f7a2188b766ec8d4f73 /TSRM
parent18f86e7757ec450e73fbc6ffa339f78e56ab0214 (diff)
downloadphp-git-3dab84005d8b70190e35776e6609585ee4d285c3.tar.gz
- Fix V_CHDIR_FILE()
Diffstat (limited to 'TSRM')
-rw-r--r--TSRM/tsrm_virtual_cwd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/TSRM/tsrm_virtual_cwd.c b/TSRM/tsrm_virtual_cwd.c
index facfdfce04..c8d41b2f6c 100644
--- a/TSRM/tsrm_virtual_cwd.c
+++ b/TSRM/tsrm_virtual_cwd.c
@@ -422,7 +422,9 @@ CWD_API int virtual_chdir_file(const char *path, int (*p_chdir)(const char *path
}
if (length == -1) {
- return virtual_chdir(path);
+ /* No directory only file name */
+ errno = ENOENT;
+ return -1;
}
if (length == COPY_WHEN_ABSOLUTE && IS_ABSOLUTE_PATH(path, length+1)) { /* Also use trailing slash if this is absolute */