diff options
author | Antony Dovgal <tony2001@php.net> | 2006-10-06 14:03:19 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2006-10-06 14:03:19 +0000 |
commit | 58b858287bfeb1330eb50ea39d4a464163e5cb83 (patch) | |
tree | 24363cca96c97b40493f4e217265dce4ebb13810 | |
parent | 2f738dd4405ad43e93200919a230531b5935f083 (diff) | |
download | php-git-58b858287bfeb1330eb50ea39d4a464163e5cb83.tar.gz |
MFH: fix #39060 (virtual_file_ex() is broken on *BSD)
-rw-r--r-- | TSRM/tsrm_virtual_cwd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/TSRM/tsrm_virtual_cwd.c b/TSRM/tsrm_virtual_cwd.c index 54ae9a75ff..eafa003aec 100644 --- a/TSRM/tsrm_virtual_cwd.c +++ b/TSRM/tsrm_virtual_cwd.c @@ -385,7 +385,7 @@ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func /* cwd_length can be 0 when getcwd() fails. * This can happen under solaris when a dir does not have read permissions * but *does* have execute permissions */ - if (!IS_ABSOLUTE_PATH(path, path_length) && (state->cwd_length > 1)) { + if (!IS_ABSOLUTE_PATH(path, path_length) && (state->cwd_length > 0)) { int orig_path_len; int state_cwd_length = state->cwd_length; |