diff --git a/src/fs_find_mount_point.cpp b/src/fs_find_mount_point.cpp index 4bb50c23..5e345809 100644 --- a/src/fs_find_mount_point.cpp +++ b/src/fs_find_mount_point.cpp @@ -21,7 +21,7 @@ fs::find_mount_point(const ghc::filesystem::path &path_) return {}; tmp_path = can_path; - while(tmp_path != "/") + while(tmp_path != tmp_path.root_path()) { rv = fs::lstat(tmp_path.parent_path(),&tmp_st); if(rv == -1)