On Sun, 29 Nov 2009 16:30:56 +1000, Huub van Niekerk <huubvanniek...@gmail.com> wrote:

Hi,

Hello,


I started getting this error after upgrading from Fedora 11 to 12. The
line of code hasn't been changed:

open my $LPR, '|-', qw/lpr -PDeskJet940C/ or die "can't fork lpr: $!";

The error is: "Insecure $ENV{PATH} while running with -T switch at"
pointing at the line above. From articles on the net I understand it has
something to do with '|-', though I'm not sure. What can/should I do
about it?

I had this problem before. If I added:

$ENV{"PATH"} = "";

at the start of the script, it doesn't seem to complain any more.

This article* provides an explanation.

Hope that helps,

Dave

*http://gunther.web66.com/FAQS/taintmode.html


Thanks for helping out.




--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to