From: Karel Zak Date: Mon, 7 Mar 2011 09:06:24 +0000 (+0100) Subject: mount: update mtab on "-f" and compiled with libmount X-Git-Tag: v2.20-rc1~488 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9f9371e029a80fe788af2c0f6d0c09485b4e990;p=thirdparty%2Futil-linux.git mount: update mtab on "-f" and compiled with libmount Reported-by: silvan minghetti Signed-off-by: Karel Zak --- 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);