Date: | Sun, 13 Jun 2004 11:58:25 -0400 |
From: | Rocco Caputo <rcaputo [...] pobox.com> |
To: | bug-PAR [...] rt.cpan.org |
Subject: | Permission denied at ../blib/lib/PAR.pm line 499. |
This ticket was requested from an IRC conversation.
I must have run par -o as root at one time, because my /tmp/par-troc
file was owned by root:wheel and unwritable. The unwritable nature of
/tmp/par-troc was causing a cryptic message:
Permission denied at ../blib/lib/PAR.pm line 499.
At the time I didn't know why this message occurred.
Autrijus suggested that I remove /tmp/par-* and try again. This
worked most excellently.
Autrijus suggested as a work-around not to trust $ENV{USER} if it
disagrees with the current UID. That seems reasonable.
A possible solution would be to use getpwuid($>) if it's available,
and fall back on the shell environment if it's not.
Thanks for PAR, and I hope the report helps.
-- Rocco Caputo - http://poe.perl.org/