blob: 4f4982e6c523b3f192360f7344a2662420941470 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
--- nagios-plugins-trunk-200708071200/plugins/check_by_ssh.c 2007-06-13 01:18:13.000000000 +0200
+++ nagios-plugins-trunk-200708071200-check_by_ssh_patch/plugins/check_by_ssh.c 2007-08-07 20:31:57.000000000 +0200
@@ -110,7 +110,8 @@
* Wrap up quickly and keep the tricks below */
if(!passive) {
if (chld_out.lines > skip_stdout)
- puts (chld_out.line[skip_stdout]);
+ for (i = skip_stdout; i < chld_out.lines; i++)
+ puts (chld_out.line[i]);
else
printf (_("%s - check_by_ssh: Remote command '%s' returned status %d\n"),
state_text(result), remotecmd, result);
|