From 46ef88e0f7ec187e4448230efa6baf698643d3f9 Mon Sep 17 00:00:00 2001 From: Steve Dickson Date: Thu, 10 May 2007 16:02:15 -0400 Subject: [PATCH] Added missing unlock_mtab() call in the add_mtab() routine. Signed-off-by: Steve Dickson --- utils/mount/mount.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.39.2