|
@ -30,7 +30,10 @@ fs::find_mount_point(const ghc::filesystem::path &path_) |
|
|
{ |
|
|
{ |
|
|
rv = fs::lstat(tmp_path.parent_path(),&tmp_st); |
|
|
rv = fs::lstat(tmp_path.parent_path(),&tmp_st); |
|
|
if(rv == -1) |
|
|
if(rv == -1) |
|
|
return nonstd::make_unexpected(std::error_code(errno,std::generic_category())); |
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
ec.assign(errno,std::generic_category()); |
|
|
|
|
|
return nonstd::make_unexpected(ec); |
|
|
|
|
|
} |
|
|
if(tmp_st.st_dev != initial_st.st_dev) |
|
|
if(tmp_st.st_dev != initial_st.st_dev) |
|
|
return tmp_path; |
|
|
return tmp_path; |
|
|
|
|
|
|
|
|