]> git.pld-linux.org Git - packages/util-linux.git/commitdiff
- CAN-2005-2876; patch taken from gentoo portage
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 21 Sep 2005 16:59:34 +0000 (16:59 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    util-linux-2.12q-use-update_mtab-for-fake.patch -> 1.1

util-linux-2.12q-use-update_mtab-for-fake.patch [new file with mode: 0644]

diff --git a/util-linux-2.12q-use-update_mtab-for-fake.patch b/util-linux-2.12q-use-update_mtab-for-fake.patch
new file mode 100644 (file)
index 0000000..5d0b436
--- /dev/null
@@ -0,0 +1,16 @@
+Use update_mtab() to update /etc/mtab on fake mounts (mount -f), else we get
+dup entries in /etc/mtab.
+
+Patch by Mike Frysinger <vapier@gentoo.org>
+
+--- util-linux-2.12q/mount/mount.c     2005-09-14 15:37:43.000000000 +0200
++++ util-linux-2.12q.az/mount/mount.c  2005-09-14 15:27:14.000000000 +0200
+@@ -662,7 +662,7 @@ update_mtab_entry(const char *spec, cons
+               print_one (&mnt);
+       if (!nomtab && mtab_is_writable()) {
+-              if (flags & MS_REMOUNT)
++              if (fake || (flags & MS_REMOUNT))
+                       update_mtab (mnt.mnt_dir, &mnt);
+               else {
+                       mntFILE *mfp;
This page took 0.137212 seconds and 4 git commands to generate.