From 25640b9c0b411402012fe2d4bf371a0184a132c1 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Wed, 16 Apr 2025 00:17:27 -0500 Subject: [PATCH] fs_find_mount_point.cpp --- src/fs_find_mount_point.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/fs_find_mount_point.cpp b/src/fs_find_mount_point.cpp index 28df8f26..e8e14310 100644 --- a/src/fs_find_mount_point.cpp +++ b/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; }