]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
mount: update mtab on "-f" and compiled with libmount
authorKarel Zak <kzak@redhat.com>
Mon, 7 Mar 2011 09:06:24 +0000 (10:06 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 18 Apr 2011 12:43:55 +0000 (14:43 +0200)
Reported-by: silvan minghetti <bu1137@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
mount/mount.c

index f5b3521a8036198a9be68c7f14f0eb838bf2ecc6..1c5fe5a3a4aaa02ece6f827775f7260c67eeb4a3 100644 (file)
@@ -1639,6 +1639,9 @@ try_mount_one (const char *spec0, const char *node0, const char *types0,
 #ifdef HAVE_LIBMOUNT_MOUNT
   mtab_opts = fix_opts_string(flags & ~MS_NOMTAB, extra_opts, user);
   mtab_flags = flags;
+
+  if (fake)
+    prepare_mtab_entry(spec, node, types, mtab_opts, mtab_flags);
 #endif
 
   block_signals (SIG_BLOCK);