No point in rewind() mtab in zfs_unshare_proto(). We're not really
[zfs.git] / lib / libzfs / libzfs_mount.c
index 9a57ad9..bded1f0 100644 (file)
@@ -877,7 +877,6 @@ zfs_unshare_proto(zfs_handle_t *zhp, const char *mountpoint,
        char *mntpt = NULL;
 
        /* check to see if need to unmount the filesystem */
-       rewind(zhp->zfs_hdl->libzfs_mnttab);
        if (mountpoint != NULL)
                mountpoint = mntpt = zfs_strdup(hdl, mountpoint);