Package: xpdf Version: 3.03-5 Severity: normal Tags: patch When running xpdf on a compressed file, the temporary file is no longer removed.
The script contains: tmp=$(tempfile -s .pdf) trap "rm -f -- \"$tmp\"" EXIT HUP INT QUIT TERM case "$file" in *.gz|*.Z) zcat "$file" > "$tmp" ;; *.xz) xzcat "$file" > "$tmp" ;; *.bz2) bzcat "$file" > "$tmp" ;; *) tmp="$file" ;; esac exec $cmd -title "$title" "$tmp" $pages || true but due to the exec, the trap no longer occurs. -- System Information: Debian Release: wheezy/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 3.0.0-1-amd64 (SMP w/8 CPU cores) Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages xpdf depends on: ii lesstif2 1:0.95.2-1 ii libc6 2.13-21 ii libgcc1 1:4.6.1-11 ii libpoppler13 0.16.7-2 ii libstdc++6 4.6.1-11 ii libx11-6 2:1.4.4-1 ii libxt6 1:1.1.1-2 Versions of packages xpdf recommends: ii gsfonts-x11 0.22 ii poppler-data 0.4.5-2 ii poppler-utils 0.16.7-2 xpdf suggests no packages. -- no debconf information
--- /usr/bin/xpdf 2011-09-17 10:18:51.000000000 +0200 +++ xpdf 2011-09-20 12:20:43.000000000 +0200 @@ -64,5 +64,5 @@ *.bz2) bzcat "$file" > "$tmp" ;; *) tmp="$file" ;; esac - exec $cmd -title "$title" "$tmp" $pages || true + $cmd -title "$title" "$tmp" $pages || true fi