From: Jarkko Hietaniemi Date: Wed, 10 Oct 2001 11:48:14 +0000 (+0000) Subject: In VMS the copy-to-untaint %ENV in the initialization also loses X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=fea335d77e91ea87e7356d5b1791fc013093ffaa;p=p5sagit%2Fp5-mst-13.2.git In VMS the copy-to-untaint %ENV in the initialization also loses all of the extra VMSish attributes (such as "treat this logical as a device name") that are necessary to make programs run. A tainted %ENV does not hinder VMS. From Charles Lane. p4raw-id: //depot/perl@12390 --- diff --git a/lib/File/Find/t/taint.t b/lib/File/Find/t/taint.t index 73006e5..0915049 100644 --- a/lib/File/Find/t/taint.t +++ b/lib/File/Find/t/taint.t @@ -15,8 +15,10 @@ BEGIN { use Config; BEGIN { - for (keys %ENV) { # untaint ENV - ($ENV{$_}) = $ENV{$_} =~ /(.*)/; + if ($^O ne 'VMS') { + for (keys %ENV) { # untaint ENV + ($ENV{$_}) = $ENV{$_} =~ /(.*)/; + } } # Remove insecure directories from PATH