diff --git a/src/fs_find_mount_point.cpp b/src/fs_find_mount_point.cpp index dc761678..7b51609b 100644 --- a/src/fs_find_mount_point.cpp +++ b/src/fs_find_mount_point.cpp @@ -20,7 +20,9 @@ fs::find_mount_point(const ghc::filesystem::path &path_) rv = fs::lstat(tmp_path,&tmp_st); if(rv == -1) return {}; - + if(tmp_st.st_dev != initial_st.st_dev) + return tmp_path; + tmp_path = tmp_path.parent_path(); }