From 48c6d169c5261d42daa7760b6e16e005f7031336 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Wed, 16 Apr 2025 11:48:50 -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 1b354c07..8110d6d9 100644 --- a/src/fs_find_mount_point.cpp +++ b/src/fs_find_mount_point.cpp @@ -27,7 +27,7 @@ fs::find_mount_point(const ghc::filesystem::path &path_) { rv = fs::lstat(tmp_path.parent_path(),&tmp_st); if(rv == -1) - return {}; + return nonstd::make_unexpected(std::error_code(errno,std::generic_category())); if(tmp_st.st_dev != initial_st.st_dev) return tmp_path;