B
brian.bygland
I'm using Perl 5.6.1 on both UNIX (AIX) and Windows 2000. When I
execute the script with the -T taint check on UNIX, it runs fine. The
same script on Windows fails with the error:
C:\Documents and Settings\bxb7668\My Documents\@Junk>perl -T junk3.pl
Insecure dependency in chdir while running with -T switch at
C:/Perl/lib/Cwd.pm line 305.
BEGIN failed--compilation aborted at C:/Perl/lib/FindBin.pm line 166.
Compilation failed in require at junk3.pl line 14.
BEGIN failed--compilation aborted at junk3.pl line 14.
The Cwd.pm module is the same on both platforms. Any idea what is going
on here?
This is my test script, junk3.pl:
#!/usr/bin/perl -w
use strict;
# Untainting stuff:
#
# 1) Untaint PATH
$ENV{PATH} = "";
# 2) Remove the IFS, CDPATH, ENV and BASH_ENV environment variables
delete @ENV{qw(IFS CDPATH ENV BASH_ENV)};
# Add the VOBTools library location to @INC
use FindBin qw($Bin); # This is line 14
use lib ("${Bin}/perllib","${Bin}/../perllib");
print "$^O \n";
exit 0;
execute the script with the -T taint check on UNIX, it runs fine. The
same script on Windows fails with the error:
C:\Documents and Settings\bxb7668\My Documents\@Junk>perl -T junk3.pl
Insecure dependency in chdir while running with -T switch at
C:/Perl/lib/Cwd.pm line 305.
BEGIN failed--compilation aborted at C:/Perl/lib/FindBin.pm line 166.
Compilation failed in require at junk3.pl line 14.
BEGIN failed--compilation aborted at junk3.pl line 14.
The Cwd.pm module is the same on both platforms. Any idea what is going
on here?
This is my test script, junk3.pl:
#!/usr/bin/perl -w
use strict;
# Untainting stuff:
#
# 1) Untaint PATH
$ENV{PATH} = "";
# 2) Remove the IFS, CDPATH, ENV and BASH_ENV environment variables
delete @ENV{qw(IFS CDPATH ENV BASH_ENV)};
# Add the VOBTools library location to @INC
use FindBin qw($Bin); # This is line 14
use lib ("${Bin}/perllib","${Bin}/../perllib");
print "$^O \n";
exit 0;