in reply to inconsistency in untaint
#!/usr/bin/perl -T # file rmtree.pl use File::Path; my $dir = 'path'; rmtree($dir);
called as
qwurx [shmem] ~> mkdir -p path/to/some/file qwurx [shmem] ~> perl -T rmtree.pl
and removes the path directory without complaint, as does
called as#!/usr/bin/perl -T # file rmtree.pl use File::Path; my $dir = shift; $dir =~ /^(.*)$/ && ($dir = $1); rmtree($dir);
qwurx [shmem] ~> mkdir -p path/to/some/file qwurx [shmem] ~> perl -T rmtree.pl path
while this barfs
#!/usr/bin/perl -T # file rmtree.pl use File::Path; my $dir = shift; # $dir =~ /^(.*)$/ && ($dir = $1); rmtree($dir);
as it should:
qwurx [shmem] ~> mkdir -p path/to/some/file qwurx [shmem] ~> perl -T rmtree.pl path Insecure dependency in chdir while running with -T switch at /usr/lib/ +perl5/5.8.8/File/Path.pm line 195.
Mind to post some code?
--shmem
_($_=" "x(1<<5)."?\n".q·/)Oo. G°\ /
/\_¯/(q /
---------------------------- \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: inconsistency in untaint
by ruzam (Curate) on Aug 30, 2006 at 17:52 UTC | |
by shmem (Chancellor) on Aug 30, 2006 at 18:10 UTC | |
by ruzam (Curate) on Aug 30, 2006 at 18:32 UTC | |
|
Re^2: inconsistency in untaint
by ruzam (Curate) on Aug 30, 2006 at 17:45 UTC |