Skip to content

Commit

Permalink
set $Archive::Tar::CHOWN=0 (RT#46384)
Browse files Browse the repository at this point in the history
  • Loading branch information
xdg committed May 29, 2009
1 parent 05bd074 commit 6acfe7a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Changes
@@ -1,3 +1,6 @@

* sets $Archive::Tar::CHOWN=0 (RT#46384 reported by John Lightsey)

2009-05-24 Andreas J. Koenig <andk@cpan.org>

* this is release 1.94
Expand Down
3 changes: 2 additions & 1 deletion lib/CPAN/Tarzip.pm
Expand Up @@ -311,9 +311,10 @@ Can't continue cutting file '$file'.
unless ($CPAN::META->has_usable("Archive::Tar")) {
$CPAN::Frontend->mydie("Archive::Tar not installed, please install it to continue");
}
# Make sure AT does not use permissions in the archive
# Make sure AT does not use uid/gid/permissions in the archive
# This leaves it to the user's umask instead
local $Archive::Tar::CHMOD = 0;
local $Archive::Tar::CHOWN = 0;
my $tar = Archive::Tar->new($file,1);
my $af; # archive file
my @af;
Expand Down

0 comments on commit 6acfe7a

Please sign in to comment.