summaryrefslogtreecommitdiffstats
path: root/utils/mount/mount.c
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2008-01-16 11:50:41 -0500
committerSteve Dickson <steved@redhat.com>2008-01-16 11:50:41 -0500
commitfa087f2dece4b1d322d951e9353e8ab93208194d (patch)
tree71dc47629abc828cfc711216df264632a8eb8570 /utils/mount/mount.c
parent0f3172012919d36e2a7e5bf46c388f8c028fc93e (diff)
downloadnfs-utils-fa087f2dece4b1d322d951e9353e8ab93208194d.tar.gz
nfs-utils-fa087f2dece4b1d322d951e9353e8ab93208194d.tar.xz
nfs-utils-fa087f2dece4b1d322d951e9353e8ab93208194d.zip
add_mtab() calls unlock_mtab() twice in one of its error exit paths.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'utils/mount/mount.c')
-rw-r--r--utils/mount/mount.c1
1 files changed, 0 insertions, 1 deletions
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;