Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: Problems with Sys::Syslog and taint

by mdillon (Priest)
on May 16, 2000 at 00:12 UTC ( #11734=note: print w/replies, xml ) Need Help??

in reply to Problems with Sys::Syslog and taint

Sys::Hostname tries to fall back to system utilities like 'hostname' and 'uname -n' to get the host name, so the problem probably has something to do with your $ENV{PATH}.

i was able to get your code to work by adding the following line:

local %ENV = (PATH => '/bin');
this should work under UNIX as long as 'uname' or 'hostname' is in '/bin'.

a better way to make it work is to create "" for the systems you'll be using by running 'h2ph /usr/include/syscall.h'. however, upon testing, even this didn't fully avoid tainting problems on my system (GNU/Linux).

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11734]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2022-11-28 12:05 GMT
Find Nodes?
    Voting Booth?