summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2007-05-10 16:02:15 -0400
committerNeil Brown <neilb@suse.de>2007-07-16 10:49:22 +1000
commit46ef88e0f7ec187e4448230efa6baf698643d3f9 (patch)
treefb338bfc8666750f0ad45d854dc6d7c081b00bb4
parente64f7f6b73cfc80662cf5f724f3c1eb86a392883 (diff)
downloadnfs-utils-46ef88e0f7ec187e4448230efa6baf698643d3f9.tar.gz
nfs-utils-46ef88e0f7ec187e4448230efa6baf698643d3f9.tar.xz
nfs-utils-46ef88e0f7ec187e4448230efa6baf698643d3f9.zip
Added missing unlock_mtab() call in the add_mtab()
routine. Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r--utils/mount/mount.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/mount/mount.c b/utils/mount/mount.c
index c163922..442ce0e 100644
--- a/utils/mount/mount.c
+++ b/utils/mount/mount.c
@@ -185,6 +185,7 @@ int add_mtab(char *fsname, char *mount_point, char *fstype, int flags, char *opt
lock_mtab();
if ((mtab = setmntent(MOUNTED, "a+")) == NULL) {
+ unlock_mtab();
fprintf(stderr, "Can't open " MOUNTED);
return 1;
}