From f8d1b26ff25ca2c73bf8169c5872a639803ba9be Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Wed, 16 Apr 2025 11:52:21 -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 ddf85bdf..88641cdf 100644 --- a/src/fs_find_mount_point.cpp +++ b/src/fs_find_mount_point.cpp @@ -19,7 +19,7 @@ fs::find_mount_point(const ghc::filesystem::path &path_) return nonstd::make_unexpected(ec); rv = fs::lstat(can_path,&initial_st); - ec = errno; + ec.assign(errno); if(rv == -1) return nonstd::make_unexpected(std::error_code(errno,std::generic_category()));