1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-03 01:23:49 +00:00
freebsd-ports/net/netsaint-plugins/files/patch-check_ssh.c
Jun Kuriyama dc1f97b45e Bump PORTREVISION.
check_snmp calls snmpget without '-c' parameter, which is mandatory
with NetSNMP 5.x. Add '-c' to the command line to make it work with
both NetSNMP 4.x and 5.x.

check_by_ssh dumps core with called without -C, also usage help output
does not document -C and -v.

check_ssh plugin incorrectly parses the SSH banner.

check_ntp does not work with NTP v2. Add -n option to be able to
select NTP version.

Submitted by:	David Douthitt <n9ubh@callsign.net>,
		Jens Trzaska <jt@barfoos.de> (check_snmp) via maintainer
2002-06-24 01:59:54 +00:00

21 lines
698 B
C

--- 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);
}