aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/netsaint-plugins
diff options
context:
space:
mode:
authorMaho Nakata <maho@FreeBSD.org>2003-08-02 02:03:03 +0000
committerMaho Nakata <maho@FreeBSD.org>2003-08-02 02:03:03 +0000
commit5777cd28dc4c661ca8615fd99ebf23e1beab31bc (patch)
treea49b221342307719b8b14283734c678c7903c406 /net-mgmt/netsaint-plugins
parent76b62223d5b5b3813ef7cc78f71ac421a17feca1 (diff)
downloadports-5777cd28dc4c661ca8615fd99ebf23e1beab31bc.tar.gz
ports-5777cd28dc4c661ca8615fd99ebf23e1beab31bc.zip
Notes
Diffstat (limited to 'net-mgmt/netsaint-plugins')
-rw-r--r--net-mgmt/netsaint-plugins/files/patch-check_by_ssh.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/net-mgmt/netsaint-plugins/files/patch-check_by_ssh.c b/net-mgmt/netsaint-plugins/files/patch-check_by_ssh.c
index f89ad7d49ffa..68de5fab2234 100644
--- a/net-mgmt/netsaint-plugins/files/patch-check_by_ssh.c
+++ b/net-mgmt/netsaint-plugins/files/patch-check_by_ssh.c
@@ -1,11 +1,11 @@
---- plugins/check_by_ssh.c.orig Fri Jun 21 11:19:56 2002
-+++ plugins/check_by_ssh.c Fri Jun 21 11:54:25 2002
+--- 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)
++ if ((remotecmd==NULL) || (strlen (remotecmd) <= 1))
usage ("No remotecmd\n");
comm = ssprintf(comm,"%s %s '%s'",comm,hostname,remotecmd);
@@ -23,7 +23,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
++-H <host> -C <command> [-fyv] [-P port] [-t timeout] [-i identity]\n\
[-l user] [-n name] [-s servicelist] [-O outputfile]"
void print_usage(void)