Package: mime-support
Version: 3.58
Severity: normal
File: /usr/bin/run-mailcap

If the edit= parameter for a MIME type specifies a nonexistent
command, run-mailcap just exits 0, which in Unix terms means that
everything was alright, except nothing actually happened:

% pdfmod
zsh: command not found: pdfmod

% run-mailcap --debug --action=edit /tmp/3290_001.pdf
 - parsing parameter "--action=edit"
 - parsing parameter "/tmp/3290_001.pdf"
 - Reading mime.types file "/home/madduck/.mime.types"...
   could not read "/home/madduck/.mime.types" -- No such file or directory
 - Reading mime.types file "/usr/local/etc/mime.types"...
   could not read "/usr/local/etc/mime.types" -- No such file or directory
 - Reading mime.types file "/usr/share/etc/mime.types"...
   could not read "/usr/share/etc/mime.types" -- No such file or directory
 - Reading mime.types file "/etc/mime.types"...
 - extension "pdf" maps to mime-type "application/pdf"
 - Reading mailcap file "/home/madduck/.mailcap"...
 - Reading mailcap file "/etc/mailcap"...
 - Reading mailcap file "/usr/local/etc/mailcap"...
   could not read "/usr/local/etc/mailcap" -- No such file or directory
 - Reading mailcap file "/usr/share/etc/mailcap"...
   could not read "/usr/share/etc/mailcap" -- No such file or directory
 - Reading mailcap file "/usr/etc/mailcap"...
   could not read "/usr/etc/mailcap" -- No such file or directory
Processing file "/tmp/3290_001.pdf" of type "application/pdf" (encoding=none)...
 - checking mailcap entry "application/pdf; apvlv %s; edit=pdfmod %s; test=test 
-n "$DISPLAY" ; nametemplate=%s.pdf"
 - program to execute: pdfmod %s
 - running test: test -n "$DISPLAY"  (result=0=true)
 - executing: pdfmod /tmp/3290_001.pdf

% echo $?
0


It *should* give an appropriate error message and probably exit with
error code -128 like the shell does.

-- System Information:
Debian Release: 8.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.19.0-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_NZ, LC_CTYPE=en_NZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

mime-support depends on no packages.

Versions of packages mime-support recommends:
ii  file  1:5.22+15-2

mime-support suggests no packages.

-- debconf-show failed


-- 
 .''`.   martin f. krafft <[email protected]> @martinkrafft
: :'  :  proud Debian developer
`. `'`   http://people.debian.org/~madduck
  `-  Debian - when you have better things to do than fixing systems

Attachment: digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)

Reply via email to