Skip Menu |

This queue is for tickets about the Archive-Tar CPAN distribution.

Report information
The Basics
Id: 40016
Status: resolved
Priority: 0/
Queue: Archive-Tar

People
Owner: Nobody in particular
Requestors: haarg [...] haarg.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.39_04
Fixed in: (no value)



Subject: Archive::Tar assumes $> won't change
Archive::Tar uses a constant, CAN_CHOWN, to note if it is possible to chown a file. To create the constant, $> is compared to 0. However, $> can be changed to reduce the privileges of the perl program. After this, it still tries to change the owner but cannot, resulting in warnings.
Hi, On Mon Oct 13 13:21:43 2008, haarg wrote: Show quoted text
> Archive::Tar uses a constant, CAN_CHOWN, to note if it is possible to > chown a file. To create the constant, $> is compared to 0. However, $> > can be changed to reduce the privileges of the perl program. After > this, it still tries to change the owner but cannot, resulting in
warnings. Thanks for reporting; I've made the CAN_CHOWN lookup dynamic by changing it to a coderef rather than a constant. This fix will be part of the next release of Archive::Tar. Cheers,