X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fmount%2Fmount.c;h=cc00bf7b95cc304a287f450d37e8674aa93ee98d;hp=6ae6b79962c73fbbd7a852e661a6c8e9eeeb3ebe;hb=fa087f2dece4b1d322d951e9353e8ab93208194d;hpb=0f3172012919d36e2a7e5bf46c388f8c028fc93e diff --git a/utils/mount/mount.c b/utils/mount/mount.c index 6ae6b79..cc00bf7 100644 --- a/utils/mount/mount.c +++ b/utils/mount/mount.c @@ -246,7 +246,6 @@ static int add_mtab(char *spec, char *mount_point, char *fstype, lock_mtab(); if ((mtab = setmntent(MOUNTED, "a+")) == NULL) { - unlock_mtab(); nfs_error(_("Can't open mtab: %s"), strerror(errno)); goto fail_unlock;