From c1c435fbd8377202bc112528a08173f6813915da Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Wed, 16 Apr 2025 00:27:41 -0500 Subject: [PATCH] fs_find_mount_point.cpp --- src/fs_find_mount_point.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/fs_find_mount_point.cpp b/src/fs_find_mount_point.cpp index 7b51609b..aea8f1e5 100644 --- a/src/fs_find_mount_point.cpp +++ b/src/fs_find_mount_point.cpp @@ -14,10 +14,9 @@ fs::find_mount_point(const ghc::filesystem::path &path_) if(rv == -1) return {}; - tmp_path = path_.parent_path(); while(tmp_path != "/") { - rv = fs::lstat(tmp_path,&tmp_st); + rv = fs::lstat(tmp_path.parent_path(),&tmp_st); if(rv == -1) return {}; if(tmp_st.st_dev != initial_st.st_dev)