taint.c AOK Insecure %s%s while running with -T switch __END__ -T --FILE-- abc def --FILE-- # taint.c use Config; BEGIN { if ( exists($Config{taint_support}) && not $Config{taint_support}) { print "SKIPPED\n# your perl was built without taint support\n"; exit 0; } } open(FH, " ; close FH ; chdir $a ; print "xxx\n" ; EXPECT Insecure dependency in chdir while running with -T switch at - line 12. ######## -TU --FILE-- abc def --FILE-- # taint.c use Config; BEGIN { if ( exists($Config{taint_support}) && not $Config{taint_support}) { print "SKIPPED\n# your perl was built without taint support\n"; exit 0; } } open(FH, " ; close FH ; chdir $a; no warnings 'taint' ; chdir $a ; print "xxx\n" ; use warnings 'taint' ; chdir $a ; print "yyy\n" ; EXPECT Insecure dependency in chdir while running with -T switch at - line 12. Insecure dependency in chdir while running with -T switch at - line 17. xxx yyy ######## -t --FILE-- abc def --FILE-- # taint.c use Config; BEGIN { if ( exists($Config{taint_support}) && not $Config{taint_support}) { print "SKIPPED\n# your perl was built without taint support\n"; exit 0; } } open(FH, " ; close FH ; chdir $a; no warnings 'taint' ; chdir $a ; print "xxx\n" ; use warnings 'taint' ; chdir $a ; print "yyy\n" ; EXPECT Insecure dependency in chdir while running with -t switch at - line 12. Insecure dependency in chdir while running with -t switch at - line 17. xxx yyy