Package: ghostscript Version: 9.53.3~dfsg-7 Severity: minor Tags: patch Dear Maintainer,
ps2ascii handles default arguments really oddly, including shelling out for each test (note the "()") and doesn't quote GS_EXECUTABLE, unlike the other scripts in lib/; please consider the attached patch, which also uses symbolic names for the trap signals Best, наб -- System Information: Debian Release: 10.10 APT prefers oldstable-updates APT policy: (500, 'oldstable-updates'), (500, 'oldstable-debug'), (500, 'oldstable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.19.0-17-amd64 (SMP w/24 CPU cores) Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_FIRMWARE_WORKAROUND, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en (charmap=UTF-8) Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages ghostscript depends on: ii libc6 2.28-10 ii libgs9 9.27~dfsg-2+deb10u4 Versions of packages ghostscript recommends: ii gsfonts 1:8.11+urwcyr1.0.7~pre44-4.4 Versions of packages ghostscript suggests: ii ghostscript-x 9.27~dfsg-2+deb10u4 -- no debconf information
--- ghostscript-9.53.3~dfsg.orig/lib/ps2ascii +++ ghostscript-9.53.3~dfsg/lib/ps2ascii @@ -9,13 +9,6 @@ # executable name set in the makefile GS_EXECUTABLE=gs -trap "rm -f _temp_.err _temp_.out" 0 1 2 15 +trap "rm -f _temp_.err _temp_.out" EXIT HUP INT TERM -OPTIONS="-q -dSAFER -sDEVICE=txtwrite" -if ( test $# -eq 0 ) then - $GS_EXECUTABLE $OPTIONS -o - - -elif ( test $# -eq 1 ) then - $GS_EXECUTABLE $OPTIONS -o - "$1" -else - $GS_EXECUTABLE $OPTIONS -o "$2" "$1" -fi +"$GS_EXECUTABLE" -q -dSAFER -sDEVICE=txtwrite -o "${2:--}" "${1:--}"
signature.asc
Description: PGP signature