From 31c929048769bbd294f8f226581e6160b60cb259 Mon Sep 17 00:00:00 2001 From: Sebastian Messmer Date: Sun, 12 Dec 2021 13:13:46 +0100 Subject: [PATCH] Fix subprocess call sites --- src/fspp/fuse/Fuse.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fspp/fuse/Fuse.cpp b/src/fspp/fuse/Fuse.cpp index 83e6408d..4e9dbd7f 100644 --- a/src/fspp/fuse/Fuse.cpp +++ b/src/fspp/fuse/Fuse.cpp @@ -482,7 +482,7 @@ void Fuse::unmount(const bf::path& mountdir, bool force) { //TODO Find better way to unmount (i.e. don't use external fusermount). Unmounting by kill(getpid(), SIGINT) worked, but left the mount directory transport endpoint as not connected. #if defined(__APPLE__) UNUSED(force); - int returncode = cpputils::Subprocess::call("umount", {mountdir.string()}).exitcode; + int returncode = cpputils::Subprocess::call("umount", {mountdir.string()}, "").exitcode; #elif defined(_MSC_VER) UNUSED(force); std::wstring mountdir_ = std::wstring_convert>().from_bytes(mountdir.string()); @@ -490,7 +490,7 @@ void Fuse::unmount(const bf::path& mountdir, bool force) { int returncode = success ? 0 : -1; #else std::vector args = force ? std::vector({"-u", mountdir.string()}) : std::vector({"-u", "-z", mountdir.string()}); // "-z" takes care that if the filesystem can't be unmounted right now because something is opened, it will be unmounted as soon as it can be. - int returncode = cpputils::Subprocess::call("fusermount", args).exitcode; + int returncode = cpputils::Subprocess::call("fusermount", args, "").exitcode; #endif if (returncode != 0) { throw std::runtime_error("Could not unmount filesystem");