diff options
Diffstat (limited to 'web/attachments/207725-check_by_ssh.patch')
-rw-r--r-- | web/attachments/207725-check_by_ssh.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/web/attachments/207725-check_by_ssh.patch b/web/attachments/207725-check_by_ssh.patch new file mode 100644 index 0000000..be15032 --- /dev/null +++ b/web/attachments/207725-check_by_ssh.patch | |||
@@ -0,0 +1,36 @@ | |||
1 | --- check_by_ssh.c 2006-10-18 20:25:16.000000000 -0400 | ||
2 | +++ check_by_ssh_new.c 2006-12-18 10:51:04.000000000 -0500 | ||
3 | @@ -166,6 +166,7 @@ | ||
4 | {"proto2", no_argument, 0, '2'}, | ||
5 | {"use-ipv4", no_argument, 0, '4'}, | ||
6 | {"use-ipv6", no_argument, 0, '6'}, | ||
7 | + {"quiet", no_argument, 0, 'q'}, | ||
8 | {0, 0, 0, 0} | ||
9 | }; | ||
10 | |||
11 | @@ -177,7 +178,7 @@ | ||
12 | strcpy (argv[c], "-t"); | ||
13 | |||
14 | while (1) { | ||
15 | - c = getopt_long (argc, argv, "Vvh1246ft:H:O:p:i:u:l:C:S:n:s:", longopts, | ||
16 | + c = getopt_long (argc, argv, "Vvh1246fqt:H:O:p:i:u:l:C:S:n:s:", longopts, | ||
17 | &option); | ||
18 | |||
19 | if (c == -1 || c == EOF) | ||
20 | @@ -238,6 +239,7 @@ | ||
21 | case '2': /* 1 to force version 1, 2 to force version 2 */ | ||
22 | case '4': /* -4 for IPv4 */ | ||
23 | case '6': /* -6 for IPv6 */ | ||
24 | + case 'q': /* Quiet ssh output to suppress motd */ | ||
25 | case 'f': /* fork to background */ | ||
26 | asprintf (&comm, "%s -%c", comm, c); | ||
27 | break; | ||
28 | @@ -328,6 +330,8 @@ | ||
29 | printf (" %s\n", _("tell ssh to use Protocol 1")); | ||
30 | printf (" %s\n", "-2, --proto2"); | ||
31 | printf (" %s\n", _("tell ssh to use Protocol 2")); | ||
32 | + printf (" %s\n", "-q, --quiet"); | ||
33 | + printf (" %s\n", _("tell ssh to use quiet mode")); | ||
34 | printf (" %s\n", "-S, --skiplines=n"); | ||
35 | printf (" %s\n", _("Ignore first n lines on STDERR (to suppress a logon banner)")); | ||
36 | printf (" %s\n", "-f"); | ||