mirror of
https://github.com/php/php-src.git
synced 2024-12-01 13:54:10 +08:00
Fixed wrong realpath() result in case of unexistent path
This commit is contained in:
parent
4106eee7c7
commit
c06626d8c6
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user