mirror of
https://github.com/trapexit/mergerfs.git
synced 2025-04-24 22:14:05 +08:00
fs_find_mount_point.cpp
This commit is contained in:
parent
4f85e05d29
commit
ae336279fd
@ -37,10 +37,7 @@ fs::find_mount_point(const ghc::filesystem::path &path_)
|
||||
{
|
||||
rv = fs::lstat(tmp_path.parent_path(),&tmp_st);
|
||||
if(rv == -1)
|
||||
{
|
||||
ec.assign(errno,std::generic_category());
|
||||
return nonstd::make_unexpected(ec);
|
||||
}
|
||||
return nonstd::make_unexpected(::_ecerrno());
|
||||
if(tmp_st.st_dev != initial_st.st_dev)
|
||||
return tmp_path;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user