diff options
author | Steve Dickson <steved@redhat.com> | 2007-05-10 16:02:15 -0400 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2007-07-16 10:49:22 +1000 |
commit | 46ef88e0f7ec187e4448230efa6baf698643d3f9 (patch) | |
tree | fb338bfc8666750f0ad45d854dc6d7c081b00bb4 | |
parent | e64f7f6b73cfc80662cf5f724f3c1eb86a392883 (diff) | |
download | nfs-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.c | 1 |
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; } |