fs_find_mount_point.cpp

This commit is contained in:
Antonio SJ Musumeci 2025-04-16 11:48:50 -05:00
parent 9d9577f0f8
commit 48c6d169c5

View File

@ -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;