From 5ea473ae9d9654d1f7f582e42c2428b2280aa0e6 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Wed, 16 Apr 2025 09:28:23 -0500 Subject: [PATCH] fs_find_mount_point.cpp --- src/fs_find_mount_point.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/fs_find_mount_point.cpp b/src/fs_find_mount_point.cpp index 7ae78a61..7e8caca0 100644 --- a/src/fs_find_mount_point.cpp +++ b/src/fs_find_mount_point.cpp @@ -13,6 +13,8 @@ fs::find_mount_point(const ghc::filesystem::path &path_) ghc::filesystem::path tmp_path; can_path = ghc::filesystem::weakly_canonical(path_,ec); + if(ec) + return {}; rv = fs::lstat(can_path,&initial_st); if(rv == -1)