Bug#714188: pdfjam doesn't respect TMPDIR, and uses /var/tmp unconditionally
Package: texlive-extra-utils
Version: 2013.20130530-1
The current version of pdfjam(1) doesn't respect the value of
the conventional TMPDIR environment variable and just uses
/var/tmp unconditionally instead. (Even though pdfjam(1)
appears to use mktemp(1) internally, subject to one's
availability, which implements the usual TMPDIR handling.)
Consider, for instance:
$ nl -ba < /usr/bin/pdfjam
1 #!/bin/sh
2 version=2.08
…
170 ## Next a permitted location for temporary files on your system:
171 ##
172 tempfileDir='/var/tmp' ## /var/tmp is standard on most unix systems
My suggestion would be to change it as follows:
-tempfileDir='/var/tmp' ## /var/tmp is standard on most unix systems
+# tempfileDir='/var/tmp' ## /var/tmp is standard on most unix systems
+tempfileDir=${TMPDIR:-'/tmp'} ## /tmp is the default on Debian
(The use of /tmp for the default is to match Debian's
mktemp(1).)
--
FSF associate member #7257
Reply to: