|
@ -14,10 +14,9 @@ fs::find_mount_point(const ghc::filesystem::path &path_) |
|
|
if(rv == -1) |
|
|
if(rv == -1) |
|
|
return {}; |
|
|
return {}; |
|
|
|
|
|
|
|
|
tmp_path = path_.parent_path(); |
|
|
|
|
|
while(tmp_path != "/") |
|
|
while(tmp_path != "/") |
|
|
{ |
|
|
{ |
|
|
rv = fs::lstat(tmp_path,&tmp_st); |
|
|
|
|
|
|
|
|
rv = fs::lstat(tmp_path.parent_path(),&tmp_st); |
|
|
if(rv == -1) |
|
|
if(rv == -1) |
|
|
return {}; |
|
|
return {}; |
|
|
if(tmp_st.st_dev != initial_st.st_dev) |
|
|
if(tmp_st.st_dev != initial_st.st_dev) |
|
|