diff options
author | Martin Schlemmer <azarah@gentoo.org> | 2005-09-14 13:45:56 +0000 |
---|---|---|
committer | Martin Schlemmer <azarah@gentoo.org> | 2005-09-14 13:45:56 +0000 |
commit | 0b0ee7d99d46c9ddf5596d9b1013ab1150438885 (patch) | |
tree | d5ac41c5087484278362ec07f12ae349c7c5601f /sys-apps/util-linux/files | |
parent | Do not leak memory. (diff) | |
download | historical-0b0ee7d99d46c9ddf5596d9b1013ab1150438885.tar.gz historical-0b0ee7d99d46c9ddf5596d9b1013ab1150438885.tar.bz2 historical-0b0ee7d99d46c9ddf5596d9b1013ab1150438885.zip |
Fix 'mount -f' adding dups in mtab. Bump rev for security fix to umount (bug #105805).
Package-Manager: portage-2.0.52-r1
Diffstat (limited to 'sys-apps/util-linux/files')
-rw-r--r-- | sys-apps/util-linux/files/digest-util-linux-2.12q-r3 | 4 | ||||
-rw-r--r-- | sys-apps/util-linux/files/util-linux-2.12q-use-update_mtab-for-fake.patch | 16 |
2 files changed, 20 insertions, 0 deletions
diff --git a/sys-apps/util-linux/files/digest-util-linux-2.12q-r3 b/sys-apps/util-linux/files/digest-util-linux-2.12q-r3 new file mode 100644 index 000000000000..408880da56d5 --- /dev/null +++ b/sys-apps/util-linux/files/digest-util-linux-2.12q-r3 @@ -0,0 +1,4 @@ +MD5 004b971441ef89e0b93076c21806cc7d util-linux-2.12q.tar.gz 1992810 +MD5 6e0deccf97db98d2ae751577d019efa4 util-linux-2.12i.tar.gz 1975468 +MD5 dee120b17425e1edf0a0c64f0e249c20 util-linux-2.12i-cryptoapi-losetup.patch.bz2 4800 +MD5 650186003f301362247a7d16f138eb43 loop-AES-v3.0d.tar.bz2 165472 diff --git a/sys-apps/util-linux/files/util-linux-2.12q-use-update_mtab-for-fake.patch b/sys-apps/util-linux/files/util-linux-2.12q-use-update_mtab-for-fake.patch new file mode 100644 index 000000000000..5d0b4366da98 --- /dev/null +++ b/sys-apps/util-linux/files/util-linux-2.12q-use-update_mtab-for-fake.patch @@ -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; |