good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Problems with Sys::Syslog and taintby mdillon (Priest) |
on May 16, 2000 at 00:12 UTC ( [id://11734]=note: print w/replies, xml ) | Need Help?? |
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: this should work under UNIX as long as 'uname' or 'hostname' is in '/bin'. a better way to make it work is to create "syscall.ph" 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).
In Section
Seekers of Perl Wisdom
|
|