summaryrefslogtreecommitdiff
path: root/pm_filter
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-02-24 16:01:10 -0500
committerJoey Hess <joey@kodama.kitenet.net>2008-02-24 16:01:10 -0500
commit2a802c1518d2ef9b4340961c173b5b2d111c499a (patch)
tree13d583e864838b90c73304ce7504abe1a9aac5f9 /pm_filter
parent736fa378c586176473d08b24db4e284d629fc8b4 (diff)
if NOTAINT is not set, disable tainting
Diffstat (limited to 'pm_filter')
-rwxr-xr-xpm_filter2
1 files changed, 1 insertions, 1 deletions
diff --git a/pm_filter b/pm_filter
index a80ce04f0..287adc376 100755
--- a/pm_filter
+++ b/pm_filter
@@ -20,6 +20,6 @@ elsif (/^use lib/) {
$_="use lib '$libdir';\n";
}
}
-elsif ($. == 1 && $ENV{NOTAINT} && m{^(#!/usr/bin/perl) -T$}) {
+elsif ($. == 1 && ($ENV{NOTAINT} || ! exists $ENV{NOTAINT}) && m{^(#!/usr/bin/perl) -T$}) {
$_=qq{$1\n};
}