From 6d6d73c7b3a7c460fcfb62335dc52d0238e0d938 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Thu, 7 May 2026 16:47:04 -0500 Subject: [PATCH] Use unmount() on FreeBSD for ENOTCONN umount --- vendored/libfuse/lib/helper.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vendored/libfuse/lib/helper.cpp b/vendored/libfuse/lib/helper.cpp index a9def14e..d9fc1ccb 100644 --- a/vendored/libfuse/lib/helper.cpp +++ b/vendored/libfuse/lib/helper.cpp @@ -64,7 +64,12 @@ _realpath_mountpoint(const char *path_, // If it looks like a disconnected fuse mount try to umount it if((not rv) && (errno == ENOTCONN)) { +#if defined __FreeBSD__ + unmount(path_,0); +#else umount(path_); +#endif + rv = realpath(path_,resolved_path_); }