From 800bc861c2bb1c0fe752b9619404baf7e41315fa Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Wed, 16 Apr 2025 09:08:43 -0500 Subject: [PATCH] fs_find_mount_point.cpp --- src/fs_find_mount_point.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/fs_find_mount_point.cpp b/src/fs_find_mount_point.cpp index 3014c06e..ecffd4a2 100644 --- a/src/fs_find_mount_point.cpp +++ b/src/fs_find_mount_point.cpp @@ -8,8 +8,12 @@ fs::find_mount_point(const ghc::filesystem::path &path_) int rv; struct stat initial_st; struct stat tmp_st; + std::error_code ec; + ghc::filesystem::path can_path; ghc::filesystem::path tmp_path; + can_path = ghc::filesystem::weakly_canonical(path_,ec); + rv = fs::lstat(path_,&initial_st); if(rv == -1) return {};