Subject: | Taint checking $0 |
Proc-PID-File-1.24
Perl 5.8.0
Linux slogr 2.4.20-8smp #1 SMP Thu Mar 13 17:45:54 EST 2003 i686 i686 i386 GNU/Linux
Insecure dependency in sysopen while running with -T switch at /usr/lib/perl5/site_perl/5.8.0/Proc/PID/File.pm line 97.
With -T on, $0 on line 45 is considered tainted. I've checked it with a ($ME) = $ME =~ /^(.*)$/; but I'll leave it up to you to decide a better re to use.
diff -u File.pm.original File.pm
--- File.pm.original 2004-05-18 11:14:56.000000000 -0400
+++ File.pm 2004-05-18 11:14:33.000000000 -0400
@@ -42,7 +42,7 @@
$RPM_Requires = "procps";
my $RUNDIR = "/var/run";
-my $ME = $0; $ME =~ s|.*/||;
+my $ME = $0; ($ME) = $ME =~ /^(.*)$/; $ME =~ s|.*/||;
# used to keep non-expiring objects
# for simple and procedural interfaces