From abbfdca483897d4406889e3517e77baf07573ecb Mon Sep 17 00:00:00 2001 From: Turbo Fredriksson Date: Tue, 4 Jun 2013 03:56:04 +0200 Subject: [PATCH] No point in rewind() mtab in zfs_unshare_proto(). We're not really reading the file, but instead use libzfs_mnttab_find() which does the nessesary freopen() for us. Signed-off-by: Brian Behlendorf Issue #1498 --- lib/libzfs/libzfs_mount.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/libzfs/libzfs_mount.c b/lib/libzfs/libzfs_mount.c index 9a57ad98f0..bded1f0014 100644 --- a/lib/libzfs/libzfs_mount.c +++ b/lib/libzfs/libzfs_mount.c @@ -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);