Author: qboosh                       Date: Thu Sep 22 09:24:27 2005 GMT
Module: SOURCES                       Tag: RA-branch
---- Log message:
- CAN-2005-2876 fix backported to 2.11w

---- Files affected:
SOURCES:
   util-linux-use-update_mtab-for-fake.patch (NONE -> 1.1.2.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/util-linux-use-update_mtab-for-fake.patch
diff -u /dev/null SOURCES/util-linux-use-update_mtab-for-fake.patch:1.1.2.1
--- /dev/null   Thu Sep 22 11:24:27 2005
+++ SOURCES/util-linux-use-update_mtab-for-fake.patch   Thu Sep 22 11:24:22 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 <[EMAIL PROTECTED]>, backported to util-linux-2.11w
+
+--- util-linux-2.11w/mount/mount.c.orig        Thu Sep 22 09:13:14 2005
++++ util-linux-2.11w/mount/mount.c     Thu Sep 22 09:15:06 2005
+@@ -631,7 +631,7 @@
+           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;
================================================================
_______________________________________________
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to