SourceForge.net Logo

F.10. patch for syslog:/etc/log.d/scripts/shared/onlyhost

--- onlyhost-	2005-03-20 12:11:17.996886937 -0800
+++ onlyhost	2005-03-20 12:11:01.506229908 -0800
@@ -13,7 +13,7 @@ if (($ENV{'LOGWATCH_DEBUG'} > 5) and $ho
 }
 
 #If called from a service config file it passes the param as an ARG
-if ($#ARGV == 0) {      #put in or override the host id
+if (length($ARGV[0])) {      #put in or override the host id
         $hostname = $ARGV[0];
 }
 

Example F.10. patch for syslog:/etc/log.d/scripts/shared/onlyhost