SOURCES: util-linux-2.12q-use-update_mtab-for-fake.patch (NEW) - C...
glen
glen at pld-linux.org
Wed Sep 21 18:59:39 CEST 2005
Author: glen Date: Wed Sep 21 16:59:39 2005 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- CAN-2005-2876; patch taken from gentoo portage
---- Files affected:
SOURCES:
util-linux-2.12q-use-update_mtab-for-fake.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/util-linux-2.12q-use-update_mtab-for-fake.patch
diff -u /dev/null SOURCES/util-linux-2.12q-use-update_mtab-for-fake.patch:1.1
--- /dev/null Wed Sep 21 18:59:39 2005
+++ SOURCES/util-linux-2.12q-use-update_mtab-for-fake.patch Wed Sep 21 18:59:34 2005
@@ -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 at 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;
================================================================
More information about the pld-cvs-commit
mailing list