Re: [Off Topic] Dumb Perl Question...

1997-12-01 Thread Adam Shand
> perldoc perlsec is your friend! :) > > Bottom line is that globs are *always* tainted, as is anything that > relies on shell processing (csh being how globbing is done). Yep, I realise this, but what I didn't have is an alternative. There's lots of info on de-tainting user input, but basicall

RE: [Off Topic] Dumb Perl Question...

1997-12-01 Thread Adam Shand
> I don't "know" the answer to this question, but in your shoes I'd start by > re-writing the above as: That (with a couple typo's fixed :) does the trick beautifully! Thanks for the pointer, I figured there had to be a way to do it. Adam. Internet Alaska

Re: [Off Topic] Dumb Perl Question...

1997-12-01 Thread Stephen Zander
Adam Shand wrote: > How do I untaint the glob, or better yet access it so that it's not > tainted to start with (if that's possible)? The files I'm accessing are > safe as only root can write to them, but I'd like to do this the 'right > way'. > > I can't find anything relevant to this in the docs

[Off Topic] Dumb Perl Question...

1997-11-30 Thread Adam Shand
Howdy... Sorry for this stupid question but I'm hoping someone can shed some light, and I'm a 'Perl Beginner'... I'm writing a suid perl script which needs to search through a whole bunch of files in a directory and return some information. It all works fine except that the tainting doesn't li