Mantis - logwatch
Viewing Issue Advanced Details
675 regular use minor always 2004-10-20 16:45 2010-06-15 02:31
tobinjt  
 
normal  
closed  
won't fix  
none    
none  
0000675: LogWatch\'s $PATH doesn\'t include /opt/csw/bin when it\'s run.
Several utilities used in this script aren\'t found, because /opt/csw/bin isn\'t in $PATH.

/opt/csw/etc/log.d/scripts/services/sendmail-largeboxes: gls: not found
/opt/csw/etc/log.d/scripts/services/sendmail-largeboxes: ggrep: not found
/opt/csw/etc/log.d/scripts/services/sendmail-largeboxes: ggrep: not found
/opt/csw/etc/log.d/scripts/services/sendmail-largeboxes: gawk: not found
This script doesn set a PATH. I suppose I could add one. But don\'t you think you should be setting you PATH before you run regardless?
Issue History
2010-06-15 02:31 bwalton Note Added: 0008020
2010-06-15 02:31 bwalton Status feedback => closed
2010-06-15 02:31 bwalton Resolution open => won't fix

Notes
(0005169)
mlstier   
2008-03-05 10:56   
This can be accomplished by setting PATH within the logwatch.pl script.

ie: $ENV{PATH} = \"/opt/csw/bin:/usr/sbin:/usr/bin\";
(0008020)
bwalton   
2010-06-15 02:31   
As this is so old, I'm closing it without any inspection. Please let me know if the recently updated package still exhibits this problem.

-Ben