Fixing gcc 3.3 compile failures -- fix for net/netsaint-plugins

Simon Barner barner at in.tum.de
Tue Jul 22 05:26:11 PDT 2003


--- plugins/check_by_ssh.c.orig	Mon Apr 23 09:43:11 2001
+++ plugins/check_by_ssh.c	Tue Jul 22 05:05:52 2003
@@ -191,7 +191,7 @@
 	if (commands>1)
 		remotecmd=strscat(remotecmd,";echo STATUS CODE: $?;");
 
-	if (strlen (remotecmd) <= 1)
+	if (remotecmd==NULL)
 		usage ("No remotecmd\n");
 
 	comm = ssprintf(comm,"%s %s '%s'",comm,hostname,remotecmd);
@@ -369,6 +369,8 @@
 		 "   list of netsaint service names, separated by ':' [optional]\n"
 		 "-n, --name=NAME\n"
 		 "   short name of host in netsaint configuration [optional]\n"
+		 "-v, --verbose\n"
+		 "   short name of host in netsaint configuration [optional]\n"
 		 "\n"
 		 "The most common mode of use is to refer to a local identity file with\n"
 		 "the '-i' option. In this mode, the identity pair should have a null\n"
@@ -388,7 +390,7 @@
 
 
 #define OPTIONS "\
--H <host> [-P port] [-f] [-y] [-t timeout] [-i identity]\n
+-H <host> -C <command> [-fyv] [-P port] [-t timeout] [-i identity]\n\
              [-l user] [-n name] [-s servicelist] [-O outputfile]"
 
 void print_usage(void)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: Digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20030722/374bb6f9/attachment.bin


More information about the freebsd-ports mailing list