Red Hat Bugzilla – Bug 117247
Temporary files created in the current directory (ppmfade)
Last modified: 2015-03-04 20:13:37 EST
Description of problem:
Recent security update creates temporary files for 'ppmfade'
in a directory generated like this:
my $tmpdir = tempdir("ppmfade.XXXXXX", CLEANUP => 1);
This attempts to write to the current working directory
which may be problematic if that happens to be, for example,
on a read-only file system. Say, when processing pictures
on a CD. Instead the following should be used:
my $tmpdir = tempdir("ppmfade.XXXXXX", CLEANUP => 1, TMPDIR => 1);
as then $TMPDIR settings will be honoured and if not set then
$tmpdir will be created in /tmp/.
Version-Release number of selected component (if applicable):
netpbm-9.24-12.1.1 but the same applies to an updated for RH9
and likely for other versions as well.
Fixed in netpbm-10.22-2 and later.
Read ya, Phil