Use unmount() on FreeBSD for ENOTCONN umount

This commit is contained in:
Antonio SJ Musumeci
2026-05-07 17:49:24 -04:00
committed by trapexit
parent bea31543a0
commit 6d6d73c7b3
+5
View File
@@ -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_);
}