From bb53433cbf7a33af0e5ada3da2a304fd0f7af5f4 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Wed, 16 Apr 2025 09:20:52 -0500 Subject: [PATCH] fs_find_mount_point.cpp --- src/fs_find_mount_point.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)