ppmrainbow(1) insists on optional -t tmpdir being given
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
netpbm-free (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: netpbm
Ubuntu 9.04 and 9.10, package netpbm 2:10.0-12 and 2:10.0-12ubuntu1.
ppmrainbow(1) fails unless the optional -t option is given specifying a
temporary directory. 9.04:
$ ppmrainbow -w 9 -h 1 red cyan | pnmnoraw
Use of uninitialized value $tmpdir in sprintf at /usr/bin/ppmrainbow line 58.
sh: cannot create /000.ppm: Permission denied
pnmnoraw: EOF / read error reading magic number
$
Line 58 is
push @outlist, my $outfile = sprintf "%s/%03u.ppm", $tmpdir, $n;
and $tmpdir hasn't been defined by that point unless the -t option has been
given. $tempdir, note the `e', has been defined earlier, using File::Temp's
tempdir, but that doesn't make use of the $tmpdir set by the command line.
ppmrainbow seems confused. The -t option probably shouldn't exist; $TMPDIR in
the environment is sufficient. And it doesn't work as currently documented, -t
has to be given.
Changed in netpbm-free (Ubuntu): | |
status: | New → Confirmed |
Still present in 9.10's netpbm 2:10.0-12ubuntu1.1. Can someone *please* confirm this bug. It's trivial to do the above test.