From 9f7d03b455527d4ed4d82b4a6b7355549d4d4b2d Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Fri, 6 May 2005 16:26:13 -0400 Subject: [PATCH] When determining the libraries needed for Debian's initrd, unset LD_PRELOAD and LD_LIBRARY_PATH and filter out libraries found in /etc/ld.so.preload. (Addresses Debian Bug: #304003) --- debian/changelog | 19 +++++++++++++++++++ debian/initrd-tools.e2fsprogs | 7 +++++-- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index d94fb08..83c597a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,22 @@ +e2fsprogs (1.37-3) unstable; urgency=low + + * Minor man page spelling/typo fixes. (Closes: #304591, #304592, + #304594, #304597, #304593) + * Fix libblkid's recognition of cramfs filesystems, and add support for + cramfs labels. + * Fix filefrag to give correct results when the first block found is an + indirect block. (Closes: #307607) + * Fix debugfs seg fault when the stat command is given and a filesystem + is not open. + * Improve environment variable paranoia checks + * Fix e2fsck's handling of multiply claimed blocks involving the resize + inode. + * When determining the libraries needed for the initrd, unset LD_PRELOAD + and LD_LIBRARY_PATH and filter out libraries found in + /etc/ld.so.preload. (Closes: #304003) + + -- Theodore Y. Ts'o Fri, 6 May 2005 10:39:50 -0400 + e2fsprogs (1.37-2) unstable; urgency=low * Fix filefrag so that it works non ext2/3 filesystems again. diff --git a/debian/initrd-tools.e2fsprogs b/debian/initrd-tools.e2fsprogs index e514df8..75e1f77 100644 --- a/debian/initrd-tools.e2fsprogs +++ b/debian/initrd-tools.e2fsprogs @@ -15,10 +15,13 @@ case "$VERSION" in esac PROGS="/sbin/tune2fs /usr/lib/e2initrd_helper" -LIBS=`ldd $PROGS | grep -v linux-gate.so | sort -u | \ - awk '{print $3}'` +LIBS=`unset LD_LIBRARY_PATH LD_PRELOAD; ldd $PROGS | \ + grep -v 'linux-gate.so' | sort -u | awk '{print $3}'` for i in $LIBS do + if test -f /etc/ld.so.preload && grep -s ^$i\$ /etc/ld.so.preload; then + continue + fi mkdir -p `dirname $INITRDDIR/$i` cp $i $INITRDDIR/$i done -- 1.8.3.1