#717290 a2ps: a2ps.el a2ps-check-buffer quote filename

Package:
a2ps
Source:
a2ps
Description:
GNU a2ps - 'Anything to PostScript' converter and pretty-printer
Submitter:
Kevin Ryde
Date:
2014-06-30 22:11:16 UTC
Severity:
minor
#717290#5
Date:
2013-07-18 22:23:27 UTC
From:
To:
In a2ps-check-buffer it'd be good if the buffer-file-name was quoted for
the compile command string

  (let ((compile-command (concat a2ps-program
                                 " -q < /dev/null -o - > /dev/null -E"
                                 (shell-quote-argument buffer-file-name))))

This would protect a filename with spaces or special characters.  (Which
would be unusual, but unquoted a malicious filename could execute any
shell code.)

Incidentally `null-device' (emacs 20 up) could be used instead of
/dev/null for maximum portability.  But that doesn't affect debian.