summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}