In VMS the copy-to-untaint %ENV in the initialization also loses
authorJarkko Hietaniemi <jhi@iki.fi>
Wed, 10 Oct 2001 11:48:14 +0000 (11:48 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Wed, 10 Oct 2001 11:48:14 +0000 (11:48 +0000)
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

lib/File/Find/t/taint.t

index 73006e5..0915049 100644 (file)
@@ -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