summaryrefslogtreecommitdiff
path: root/TSRM
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2006-11-10 16:57:17 +0000
committerDmitry Stogov <dmitry@php.net>2006-11-10 16:57:17 +0000
commitc06626d8c69eb4cc89e48a8a760ed35a94a4f6b8 (patch)
tree141b1841f7056a79e22fc3319e0cd1ffa696c7a8 /TSRM
parent4106eee7c71360e7a71f1f18c8c60f8ca2eaa929 (diff)
downloadphp-git-c06626d8c69eb4cc89e48a8a760ed35a94a4f6b8.tar.gz
Fixed wrong realpath() result in case of unexistent path
Diffstat (limited to 'TSRM')
-rw-r--r--TSRM/tsrm_virtual_cwd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/TSRM/tsrm_virtual_cwd.c b/TSRM/tsrm_virtual_cwd.c
index 15d30d0742..017fc537a7 100644
--- a/TSRM/tsrm_virtual_cwd.c
+++ b/TSRM/tsrm_virtual_cwd.c
@@ -512,7 +512,7 @@ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func
char resolved_path[MAXPATHLEN];
if (!realpath(path, resolved_path)) { /* Note: Not threadsafe on older *BSD's */
- goto no_realpath;
+ return 1;
}
CWD_STATE_COPY(&old_state, state);