Subject: | Sys-Hostname-Long bug with -T switch |
Hello,
due to exec of external commands, namely hostname, Sys-Hostname-Long
gets evaluated as "insecure use".
Insecure $ENV{PATH} while running with -T switch at
/usr/lib64/perl5/site_perl/5.10.1/Sys/Hostname/Long.pm line XX.
The line number varies, but it's around 7x - lines with % su; and %
hostname; commands follow.
The fix is to define $ENV{PATH}, question is how to satisfy everyone.
I've fixed this by setting $ENV{PATH} = '/bin/'.
Tested with:
Linux darkstar 2.6.31.7 #1 SMP Mon Dec 14 17:36:17 CET 2009 x86_64 AMD
Athlon(tm) Dual Core Processor 5050e AuthenticAMD GNU/Linux
This is perl, v5.10.1 (*) built for x86_64-linux-thread-multi
I've tested this from CGI and CLI (-T). Sys-Hostname-Long is used by
other packages in this case.
Zdenek