Fixed wrong realpath() result in case of unexistent path

This commit is contained in:
Dmitry Stogov 2006-11-10 16:57:17 +00:00
parent 4106eee7c7
commit c06626d8c6

View File

@ -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);