[Bug 1077505] Re: display command in /etc/mailcap needs quote escaping
broucaries
1077505 at bugs.launchpad.net
Thu Dec 6 17:45:49 UTC 2012
see http://bugs.debian.org/619667
** Also affects: imagemagick (Debian) via
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=619667
Importance: Unknown
Status: Unknown
** Changed in: imagemagick (Ubuntu)
Assignee: (unassigned) => broucaries (roucaries-bastien+bugs)
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to imagemagick in Ubuntu.
https://bugs.launchpad.net/bugs/1077505
Title:
display command in /etc/mailcap needs quote escaping
Status in “imagemagick” package in Ubuntu:
Fix Released
Status in “imagemagick” package in Debian:
Unknown
Bug description:
I am not sure how, but apparently the line
image/png; display png:'%s'; test=test -n "$DISPLAY"; priority=2
(line 22 of the usr/lib/mime/packages/imagemagick file in the deb package)
becomes:
image/png; display 'png:'%s''; test=test -n "$DISPLAY"
in /etc/mailcap, as revealed by the command cat /etc/mailcap | grep "png".
The problem is the nested single quote symbols; the inner ones are not escaped so this results in a parsing error when running the command
see image.png
which results in:
sh: 1: Syntax error: Unterminated quoted string
Warning: program returned non-zero exit code #2
Running "see" with the --debug option returns:
- parsing parameter "image.png"
- Reading mime.types file "/etc/mime.types"...
- extension "png" maps to mime-type "image/png"
- Reading mailcap file "/etc/mailcap"...
Processing file "image.png" of type "image/png" (encoding=none)...
- checking mailcap entry "image/png; display 'png:'%s''; test=test -n "$DISPLAY""
- program to execute: display 'png:'%s''
- running test: test -n "$DISPLAY" (result=0=true)
- executing: display 'png:'image.png'
sh: 1: Syntax error: Unterminated quoted string
Warning: program returned non-zero exit code #2
This is not exclusive of the png format; all the invocations of the
display command in /etc/mailcap have the same problem.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/imagemagick/+bug/1077505/+subscriptions
More information about the foundations-bugs
mailing list