" Renamed to '$out_file'" );
### first, test with strict extract permissions on
+TODO:
{ local $Archive::Tar::INSECURE_EXTRACT_MODE = 0;
### we quell the error on STDERR
ok( ! -e $out_file, " File '$out_file' does not exist" );
ok( $tar->error, " Error message stored" );
+
+ local $TODO = 'Exposed unrelated filespec handling bugs on VMS' if $^O eq 'VMS';
+
like( $tar->error, qr/attempting to leave/,
" Proper violation detected" );
}
### now disable those
+TODO:
{ local $Archive::Tar::INSECURE_EXTRACT_MODE = 1;
ok( 1, " Extracting in insecure mode" );
+ local $TODO = 'Exposed unrelated filespec handling bugs on VMS' if $^O eq 'VMS';
+
ok( $tar->extract_file( $out_file ),
" File extracted" );
ok( -e $out_file, " File '$out_file' exists" );