From: Steve Dickson Date: Thu, 10 May 2007 20:02:15 +0000 (-0400) Subject: Added missing unlock_mtab() call in the add_mtab() X-Git-Tag: nfs-utils-1-1-1~153 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=46ef88e0f7ec187e4448230efa6baf698643d3f9;p=nfs-utils.git Added missing unlock_mtab() call in the add_mtab() routine. Signed-off-by: Steve Dickson --- 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; }