From 589d5726d3871f5eafce72bcf6732bb0d3fbdfc1 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Wed, 16 Apr 2025 11:46:34 -0500 Subject: [PATCH] fs_find_mount_point.cpp --- src/fs_find_mount_point.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fs_find_mount_point.cpp b/src/fs_find_mount_point.cpp index 2d62f38f..eb9b2716 100644 --- a/src/fs_find_mount_point.cpp +++ b/src/fs_find_mount_point.cpp @@ -16,11 +16,11 @@ fs::find_mount_point(const ghc::filesystem::path &path_) if(ec) can_path = ghc::filesystem::absolute(path_,ec); if(ec) - return nonstd::make_unexpected(ec); + return nonstd::make_unexpected(ec; rv = fs::lstat(can_path,&initial_st); if(rv == -1) - return std::error_code(errno); + return nonstd::make_unexpected(std::error_code(errno,std::system_category().default_error_condition(errno))); tmp_path = can_path; while(tmp_path != tmp_path.root_path())