From 47e7733678a4e9b63145e7e063a2f87c92299c7d Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Wed, 16 Apr 2025 00:26:50 -0500 Subject: [PATCH] fs_find_mount_point.cpp --- src/fs_find_mount_point.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); }