diff --git a/src/fs_find_mount_point.cpp b/src/fs_find_mount_point.cpp index 7ae78a61..7e8caca0 100644 --- a/src/fs_find_mount_point.cpp +++ b/src/fs_find_mount_point.cpp @@ -13,6 +13,8 @@ fs::find_mount_point(const ghc::filesystem::path &path_) ghc::filesystem::path tmp_path; can_path = ghc::filesystem::weakly_canonical(path_,ec); + if(ec) + return {}; rv = fs::lstat(can_path,&initial_st); if(rv == -1)