From fa087f2dece4b1d322d951e9353e8ab93208194d Mon Sep 17 00:00:00 2001 From: Steve Dickson Date: Wed, 16 Jan 2008 11:50:41 -0500 Subject: [PATCH] add_mtab() calls unlock_mtab() twice in one of its error exit paths. Signed-off-by: Chuck Lever Signed-off-by: Steve Dickson --- utils/mount/mount.c | 1 - 1 file changed, 1 deletion(-) 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; -- 2.39.5