Browse Source

fs_find_mount_point.cpp

inodecalc
Antonio SJ Musumeci 3 weeks ago
parent
commit
25640b9c0b
  1. 8
      src/fs_find_mount_point.cpp

8
src/fs_find_mount_point.cpp

@ -15,7 +15,13 @@ fs::find_mount_point(const ghc::filesystem::path &path_)
return -1;
tmp_path = path_.parent_path();
while(path
while(tmp_path != "/")
{
rv = fs::lstat(tmp_path,&tmp_st);
if(rv == -1)
return -1;
}
return 0;
}
Loading…
Cancel
Save