]> git.pld-linux.org Git - packages/util-linux.git/blame - util-linux-2.12q-use-update_mtab-for-fake.patch
- init var
[packages/util-linux.git] / util-linux-2.12q-use-update_mtab-for-fake.patch
CommitLineData
b2dedeaa
ER
1Use update_mtab() to update /etc/mtab on fake mounts (mount -f), else we get
2dup entries in /etc/mtab.
3
4Patch by Mike Frysinger <vapier@gentoo.org>
5
6--- util-linux-2.12q/mount/mount.c 2005-09-14 15:37:43.000000000 +0200
7+++ util-linux-2.12q.az/mount/mount.c 2005-09-14 15:27:14.000000000 +0200
8@@ -662,7 +662,7 @@ update_mtab_entry(const char *spec, cons
9 print_one (&mnt);
10
11 if (!nomtab && mtab_is_writable()) {
12- if (flags & MS_REMOUNT)
13+ if (fake || (flags & MS_REMOUNT))
14 update_mtab (mnt.mnt_dir, &mnt);
15 else {
16 mntFILE *mfp;
This page took 0.097733 seconds and 4 git commands to generate.