diff options
Diffstat (limited to 'lib/libzfs/os/freebsd/libzfs_zmount.c')
-rw-r--r-- | lib/libzfs/os/freebsd/libzfs_zmount.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libzfs/os/freebsd/libzfs_zmount.c b/lib/libzfs/os/freebsd/libzfs_zmount.c index 2207fffc5..e114b1e0c 100644 --- a/lib/libzfs/os/freebsd/libzfs_zmount.c +++ b/lib/libzfs/os/freebsd/libzfs_zmount.c @@ -128,8 +128,9 @@ do_mount(zfs_handle_t *zhp, const char *mntpt, char *opts, int flags) int do_unmount(const char *mntpt, int flags) { - - return (unmount(mntpt, flags)); + if (unmount(mntpt, flags) < 0) + return (errno); + return (0); } int |