Message-Id: <slrn9u03sk.hco.rgarciasuarez@rafael.kazibao.net>
p4raw-id: //depot/perl@12791
use strict;
use warnings;
-our $VERSION = "1.0405";
+our $VERSION = "1.05";
our @ISA = qw( Exporter );
our @EXPORT = qw( mkpath rmtree );
unless $safe;
if (opendir my $d, $root) {
- @files = readdir $d;
+ no strict 'refs';
+ if (!defined ${"\cTAINT"} or ${"\cTAINT"}) {
+ # Blindly untaint dir names
+ @files = map { /^(.*)$/s ; $1 } readdir $d;
+ } else {
+ @files = readdir $d;
+ }
closedir $d;
}
else {
-#!./perl
+#!./perl -wT
BEGIN {
chdir 't' if -d 't';
-#!/usr/bin/perl -w
+#!/usr/bin/perl -wT
# Test for mktemp family of commands in File::Temp
# Use STANDARD safe level for these tests