[pkg-lynx-maint] Bug#1072504: lynx: does not discard output from mailcap test
Vincent Lefevre
vincent at vinc17.net
Mon Jun 3 02:40:58 BST 2024
Package: lynx
Version: 2.9.2-1
Severity: important
lynx does not discard output from mailcap test, so that "lynx -dump"
generates incorrect output.
With mailcap 3.71:
$ lynx -dump /dev/null
/bin/atril
/usr/bin/emacs
/usr/bin/emacs
/bin/gimp-2.10
/bin/baobab
/bin/eog
/bin/evince
/bin/inkscape
/bin/wireshark
because /etc/mailcap now has lines like
application/pdf; atril %s; test=command -v atril && test -n "$DISPLAY"
where "command -v atril" outputs "/bin/atril".
I can see from strace output that lynx executes
434913 execve("/bin/sh", ["sh", "-c", "--", "command -v atril && test -n \"$DISPLAY\""], 0x55b606914990 /* 137 vars */ <unfinished ...>
and so on.
As a comparison, run-mailcap discards stdout and stderr:
if ($match =~ m/;\s*test=(.*?)\s*($|;)/) {
my $test;
print STDERR " - running test: $1 " if $debug;
$test = system "$1 >/dev/null 2>&1";
-- System Information:
Debian Release: trixie/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable-debug'), (500, 'proposed-updates-debug'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 6.7.12-amd64 (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages lynx depends on:
ii libbrotli1 1.1.0-2+b3
ii libbsd0 0.12.2-1
ii libbz2-1.0 1.0.8-5.1
ii libc6 2.38-12
ii libgnutls30t64 3.8.5-4
ii libidn2-0 2.3.7-2
ii libncursesw6 6.5-2
ii libtinfo6 6.5-2
ii lynx-common 2.9.2-1
ii zlib1g 1:1.3.dfsg-3.1
Versions of packages lynx recommends:
ii mailcap 3.71
lynx suggests no packages.
-- no debconf information
--
Vincent Lefèvre <vincent at vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
More information about the pkg-lynx-maint
mailing list