Bug 117247 - Temporary files created in the current directory (ppmfade)
Temporary files created in the current directory (ppmfade)
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: netpbm (Show other bugs)
1
All Linux
medium Severity medium
: ---
: ---
Assigned To: Phil Knirsch
Ben Levenson
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2004-03-01 18:07 EST by Michal Jaegermann
Modified: 2015-03-04 20:13 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2004-07-02 12:12:20 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Michal Jaegermann 2004-03-01 18:07:30 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.
Comment 1 Phil Knirsch 2004-07-02 12:12:20 EDT
Fixed in netpbm-10.22-2 and later.

Read ya, Phil

Note You need to log in before you can comment on or make changes to this bug.