diff options
Diffstat (limited to 'web/attachments/240316-check_by_ssh.c.patch')
-rw-r--r-- | web/attachments/240316-check_by_ssh.c.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/web/attachments/240316-check_by_ssh.c.patch b/web/attachments/240316-check_by_ssh.c.patch new file mode 100644 index 0000000..4f4982e --- /dev/null +++ b/web/attachments/240316-check_by_ssh.c.patch | |||
@@ -0,0 +1,12 @@ | |||
1 | --- nagios-plugins-trunk-200708071200/plugins/check_by_ssh.c 2007-06-13 01:18:13.000000000 +0200 | ||
2 | +++ nagios-plugins-trunk-200708071200-check_by_ssh_patch/plugins/check_by_ssh.c 2007-08-07 20:31:57.000000000 +0200 | ||
3 | @@ -110,7 +110,8 @@ | ||
4 | * Wrap up quickly and keep the tricks below */ | ||
5 | if(!passive) { | ||
6 | if (chld_out.lines > skip_stdout) | ||
7 | - puts (chld_out.line[skip_stdout]); | ||
8 | + for (i = skip_stdout; i < chld_out.lines; i++) | ||
9 | + puts (chld_out.line[i]); | ||
10 | else | ||
11 | printf (_("%s - check_by_ssh: Remote command '%s' returned status %d\n"), | ||
12 | state_text(result), remotecmd, result); | ||