diff options
author | Karel Zak | 2011-03-07 10:06:24 +0100 |
---|---|---|
committer | Karel Zak | 2011-03-07 10:06:24 +0100 |
commit | b9f9371e029a80fe788af2c0f6d0c09485b4e990 (patch) | |
tree | a7b5814a5baf796429f826718352ff6d2a4798fb | |
parent | umount: segfaults with inconsistent entry in /etc/fstab (diff) | |
download | kernel-qcow2-util-linux-b9f9371e029a80fe788af2c0f6d0c09485b4e990.tar.gz kernel-qcow2-util-linux-b9f9371e029a80fe788af2c0f6d0c09485b4e990.tar.xz kernel-qcow2-util-linux-b9f9371e029a80fe788af2c0f6d0c09485b4e990.zip |
mount: update mtab on "-f" and compiled with libmount
Reported-by: silvan minghetti <bu1137@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
-rw-r--r-- | mount/mount.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mount/mount.c b/mount/mount.c index f5b3521a8..1c5fe5a3a 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); |