]> git.pld-linux.org Git - packages/util-linux.git/blob - util-linux-2.12q-use-update_mtab-for-fake.patch
- optimize in a way that nothing is done if config is empty
[packages/util-linux.git] / util-linux-2.12q-use-update_mtab-for-fake.patch
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;
This page took 0.032204 seconds and 3 git commands to generate.