Browse Source

fs_find_mount_point.cpp

inodecalc
Antonio SJ Musumeci 3 weeks ago
parent
commit
800bc861c2
  1. 4
      src/fs_find_mount_point.cpp

4
src/fs_find_mount_point.cpp

@ -8,8 +8,12 @@ fs::find_mount_point(const ghc::filesystem::path &path_)
int rv; int rv;
struct stat initial_st; struct stat initial_st;
struct stat tmp_st; struct stat tmp_st;
std::error_code ec;
ghc::filesystem::path can_path;
ghc::filesystem::path tmp_path; ghc::filesystem::path tmp_path;
can_path = ghc::filesystem::weakly_canonical(path_,ec);
rv = fs::lstat(path_,&initial_st); rv = fs::lstat(path_,&initial_st);
if(rv == -1) if(rv == -1)
return {}; return {};

Loading…
Cancel
Save