diff options
author | Juan Linietsky <reduzio@gmail.com> | 2018-11-27 18:13:36 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2018-11-27 18:13:36 -0300 |
commit | f2ae14f3097c025382bd8645748f1d8b85560a2e (patch) | |
tree | 978caa53f491a6ad3651f57a3f0a8fce0f02e9df | |
parent | e6bc152de8dd2b6b5d58cf2da31606e044a5f49d (diff) |
Attempt to avoid breaking people's workflows on the change from 8ba0d513fa0068a241a25fbb6db09315fa3309cc
-rw-r--r-- | drivers/unix/dir_access_unix.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/unix/dir_access_unix.cpp b/drivers/unix/dir_access_unix.cpp index e4b652cdce..bea249d4b6 100644 --- a/drivers/unix/dir_access_unix.cpp +++ b/drivers/unix/dir_access_unix.cpp @@ -329,7 +329,7 @@ Error DirAccessUnix::change_dir(String p_dir) { } String base = _get_root_path(); - if (base != String()) { + if (base != String() && !try_dir.begins_with(base)) { ERR_FAIL_COND_V(getcwd(real_current_dir_name, 2048) == NULL, ERR_BUG); String new_dir; new_dir.parse_utf8(real_current_dir_name); |