Magellan Linux

Contents of /trunk/util-linux/patches/util-linux-2.12q-use-update_mtab-for-fake.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 153 - (show annotations) (download)
Tue May 8 20:52:56 2007 UTC (17 years ago) by niro
File size: 546 byte(s)
-import

1 Use update_mtab() to update /etc/mtab on fake mounts (mount -f), else we get
2 dup entries in /etc/mtab.
3
4 Patch 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;