From 975b9f03426f01bf7f5481e790d084bd9cc89d88 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Wed, 16 Apr 2025 12:04:20 -0500 Subject: [PATCH] mergerfs.cpp --- src/mergerfs.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/mergerfs.cpp b/src/mergerfs.cpp index dccec71e..42c8c7b6 100644 --- a/src/mergerfs.cpp +++ b/src/mergerfs.cpp @@ -304,10 +304,13 @@ main(int argc_, char **argv_) { ghc::filesystem::path path{argv_[1]}; - - fmt::print("{} : {}\n", - path.string(), - fs::find_mount_point(path)->string()); + fs::ecpath ecpath; + + ecpath = fs::find_mount_point(path); + if(ecpath) + fmt::print("{} : {}\n", + path.string(), + ec->string()); return 0;