diff options
author | Jun Kuriyama <kuriyama@FreeBSD.org> | 2002-06-24 01:59:54 +0000 |
---|---|---|
committer | Jun Kuriyama <kuriyama@FreeBSD.org> | 2002-06-24 01:59:54 +0000 |
commit | dc1f97b45e0a7749028447447d2e39ccad23f1d7 (patch) | |
tree | c4962a5b19de352b7a4f660f409cc5be4474fff6 /net-mgmt/netsaint-plugins/files/patch-check_ssh.c | |
parent | 292d22a3a708baa164c34cbd8f9c8cdc4f67d8ad (diff) |
Notes
Diffstat (limited to 'net-mgmt/netsaint-plugins/files/patch-check_ssh.c')
-rw-r--r-- | net-mgmt/netsaint-plugins/files/patch-check_ssh.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/net-mgmt/netsaint-plugins/files/patch-check_ssh.c b/net-mgmt/netsaint-plugins/files/patch-check_ssh.c new file mode 100644 index 000000000000..d80b91a2abb9 --- /dev/null +++ b/net-mgmt/netsaint-plugins/files/patch-check_ssh.c @@ -0,0 +1,20 @@ +--- plugins/check_ssh.c.orig Fri Jun 21 12:17:43 2002 ++++ plugins/check_ssh.c Fri Jun 21 12:23:16 2002 +@@ -246,7 +246,7 @@ + printf("%s\n", output); + ssh_proto = output + 4; + ssh_server = ssh_proto + strspn(ssh_proto, "0123456789-. "); +- ssh_proto[strspn(ssh_proto, "0123456789-. ")] = 0; ++ ssh_proto[strspn(ssh_proto, "0123456789. ")] = 0; + printf + ("SSH ok - protocol version %s - server version %s\n", + ssh_proto, ssh_server); +@@ -272,7 +272,7 @@ + { + printf + ("Usage:\n" +- " %s -t [timeout] -p [port] <host>\n" ++ " %s [-t <timeout>] [-p <port>] <host>\n" + " %s -V prints version info\n" + " %s -h prints more detailed help\n", PROGNAME, PROGNAME, PROGNAME); + } |