diff --git a/src/fs_find_mount_point.cpp b/src/fs_find_mount_point.cpp index dacd8447..51e23177 100644 --- a/src/fs_find_mount_point.cpp +++ b/src/fs_find_mount_point.cpp @@ -9,6 +9,8 @@ fs::find_mount_point(const ghc::filesystem::path &path_) struct stat initial_st; rv = fs::lstat(path_,&initial_st); + if(rv == -1) + return -1; return 0; }