From b9f9371e029a80fe788af2c0f6d0c09485b4e990 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 7 Mar 2011 10:06:24 +0100 Subject: [PATCH] mount: update mtab on "-f" and compiled with libmount Reported-by: silvan minghetti Signed-off-by: Karel Zak --- mount/mount.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mount/mount.c b/mount/mount.c index f5b3521a80..1c5fe5a3a4 100644 --- a/mount/mount.c +++ b/mount/mount.c @@ -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); -- 2.47.3