Bug 117247

Summary: Temporary files created in the current directory (ppmfade)
Product: [Fedora] Fedora Reporter: Michal Jaegermann <michal>
Component: netpbmAssignee: Phil Knirsch <pknirsch>
Status: CLOSED RAWHIDE QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: 1CC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-07-02 16:12:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Michal Jaegermann 2004-03-01 23:07:30 UTC
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.

Comment 1 Phil Knirsch 2004-07-02 16:12:20 UTC
Fixed in netpbm-10.22-2 and later.

Read ya, Phil