summaryrefslogtreecommitdiff
path: root/cpan/Archive-Tar
diff options
context:
space:
mode:
authorChris 'BinGOs' Williams <chris@bingosnet.co.uk>2018-09-13 10:01:40 +0100
committerChris 'BinGOs' Williams <chris@bingosnet.co.uk>2018-09-13 10:01:40 +0100
commit8f6fa66c6967f115eb142d5129b520af535fbf83 (patch)
tree9e431bd1004dca79bb3a5726a80a7a913addd970 /cpan/Archive-Tar
parent9e3f69e17840704c61e1ccf16ebe26a526c7447e (diff)
downloadperl-8f6fa66c6967f115eb142d5129b520af535fbf83.tar.gz
Update Archive-Tar to CPAN version 2.32
[DELTA] 2.32 13/09/2018 (CBERRY) - Fix absolute path handling on VMS
Diffstat (limited to 'cpan/Archive-Tar')
-rw-r--r--cpan/Archive-Tar/lib/Archive/Tar.pm2
-rw-r--r--cpan/Archive-Tar/lib/Archive/Tar/Constant.pm2
-rw-r--r--cpan/Archive-Tar/lib/Archive/Tar/File.pm12
3 files changed, 12 insertions, 4 deletions
diff --git a/cpan/Archive-Tar/lib/Archive/Tar.pm b/cpan/Archive-Tar/lib/Archive/Tar.pm
index e08b5e5903..093579a6c2 100644
--- a/cpan/Archive-Tar/lib/Archive/Tar.pm
+++ b/cpan/Archive-Tar/lib/Archive/Tar.pm
@@ -31,7 +31,7 @@ use vars qw[$DEBUG $error $VERSION $WARN $FOLLOW_SYMLINK $CHOWN $CHMOD
$DEBUG = 0;
$WARN = 1;
$FOLLOW_SYMLINK = 0;
-$VERSION = "2.30";
+$VERSION = "2.32";
$CHOWN = 1;
$CHMOD = 1;
$SAME_PERMISSIONS = $> == 0 ? 1 : 0;
diff --git a/cpan/Archive-Tar/lib/Archive/Tar/Constant.pm b/cpan/Archive-Tar/lib/Archive/Tar/Constant.pm
index 66fad51a07..a48968d9e0 100644
--- a/cpan/Archive-Tar/lib/Archive/Tar/Constant.pm
+++ b/cpan/Archive-Tar/lib/Archive/Tar/Constant.pm
@@ -3,7 +3,7 @@ package Archive::Tar::Constant;
BEGIN {
require Exporter;
- $VERSION = '2.30';
+ $VERSION = '2.32';
@ISA = qw[Exporter];
require Time::Local if $^O eq "MacOS";
diff --git a/cpan/Archive-Tar/lib/Archive/Tar/File.pm b/cpan/Archive-Tar/lib/Archive/Tar/File.pm
index b6fbecf6c9..3efa3159d9 100644
--- a/cpan/Archive-Tar/lib/Archive/Tar/File.pm
+++ b/cpan/Archive-Tar/lib/Archive/Tar/File.pm
@@ -13,7 +13,7 @@ use Archive::Tar::Constant;
use vars qw[@ISA $VERSION];
#@ISA = qw[Archive::Tar];
-$VERSION = '2.30';
+$VERSION = '2.32';
### set value to 1 to oct() it during the unpack ###
@@ -402,7 +402,15 @@ sub _prefix_and_file {
$file = pop @dirs if $self->is_dir and not length $file;
### splitting ../ gives you the relative path in native syntax
- map { $_ = '..' if $_ eq '-' } @dirs if ON_VMS;
+ ### Remove the root (000000) directory
+ ### The volume from splitpath will also be in native syntax
+ if (ON_VMS) {
+ map { $_ = '..' if $_ eq '-'; $_ = '' if $_ eq '000000' } @dirs;
+ if (length($vol)) {
+ $vol = VMS::Filespec::unixify($vol);
+ unshift @dirs, $vol;
+ }
+ }
my $prefix = File::Spec::Unix->catdir(@dirs);
return( $prefix, $file );