Package: prelink Version: 0.0.20061201-1 Severity: wishlist Tags: patch
Hi, When invoked with stdout redirected and a partition with less than 50MB available, the prelink wrapper sits around waiting for read to time out even though no one can react. The attached patch fixes this by checking whether stdout is redirected; perhaps a better version would be if tty -s && [ -t 1 ] since this would also check that the program is connected to a terminal. The main reason for this fix is that with hashes enabled, rkhunter calls prelink to calculate the hashes of the binaries it watches (see #448597). Regards, Stephen -- System Information: Debian Release: lenny/sid APT prefers testing APT policy: (500, 'testing'), (500, 'stable'), (200, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.22-2-686 (SMP w/2 CPU cores) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/bash Versions of packages prelink depends on: ii libc6 2.6.1-1+b1 GNU C Library: Shared libraries ii libelfg0 0.8.6-4 an ELF object file access library ii libselinux1 2.0.15-2+b1 SELinux shared libraries prelink recommends no packages. -- no debconf information
diff -ur prelink-0.0.20071009.orig/debian/prelink.sh prelink-0.0.20071009/debian/prelink.sh --- prelink-0.0.20071009.orig/debian/prelink.sh 2007-10-30 10:58:34.000000000 +0100 +++ prelink-0.0.20071009/debian/prelink.sh 2007-11-05 15:24:27.000000000 +0100 @@ -30,11 +30,13 @@ if [ "$?" -eq "1" ]; then answer="No" + if [ -t 1 ]; then echo echo "!! WARNING !!" echo "It's recommended to have at least $min_size KB of disk space." echo "Prelink would _really_ damage the ELF files on those partitions." read -t 20 -p "Do you really want to run prelink? (yes/No): " answer + fi if [ "$answer" = "yes" ]; then echo "You were warned. Running prelink..."