mcinglis / rpms / nfs-utils

Forked from rpms/nfs-utils 2 years ago
Clone
b865252
commit b028b29dc9f4b67e55cc8e0e91d2c0e2457564ed
b865252
Author: Steve Dickson <steved@redhat.com>
b865252
Date:   Thu May 10 16:02:15 2007 -0400
b865252
b865252
    Added missing unlock_mtab() call in the add_mtab()
b865252
    routine.
b865252
    
b865252
    Signed-off-by: Steve Dickson <steved@redhat.com>
b865252
b865252
diff --git a/utils/mount/mount.c b/utils/mount/mount.c
b865252
index 3831415..d3156b2 100644
b865252
--- a/utils/mount/mount.c
b865252
+++ b/utils/mount/mount.c
b865252
@@ -211,6 +211,7 @@ int add_mtab(char *fsname, char *mount_point, char *fstype, int flags, char *opt
b865252
 	lock_mtab();
b865252
 
b865252
         if ((mtab = setmntent(MOUNTED, "a+")) == NULL) {
b865252
+		unlock_mtab();
b865252
 		fprintf(stderr, "Can't open " MOUNTED);
b865252
 		return 1;
b865252
 	}