summaryrefslogtreecommitdiff
path: root/ssh.c
diff options
context:
space:
mode:
Diffstat (limited to 'ssh.c')
-rw-r--r--ssh.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/ssh.c b/ssh.c
index cfaa1ff22..c75decc1b 100644
--- a/ssh.c
+++ b/ssh.c
@@ -185,7 +185,7 @@ static void
185usage(void) 185usage(void)
186{ 186{
187 fprintf(stderr, 187 fprintf(stderr,
188"usage: ssh [-1246AaCfgkMNnqsTtVvXxY] [-b bind_address] [-c cipher_spec]\n" 188"usage: ssh [-1246AaCfgKkMNnqsTtVvXxY] [-b bind_address] [-c cipher_spec]\n"
189" [-D [bind_address:]port] [-e escape_char] [-F configfile]\n" 189" [-D [bind_address:]port] [-e escape_char] [-F configfile]\n"
190" [-i identity_file] [-L [bind_address:]port:host:hostport]\n" 190" [-i identity_file] [-L [bind_address:]port:host:hostport]\n"
191" [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]\n" 191" [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]\n"
@@ -272,7 +272,7 @@ main(int ac, char **av)
272 272
273 again: 273 again:
274 while ((opt = getopt(ac, av, 274 while ((opt = getopt(ac, av,
275 "1246ab:c:e:fgi:kl:m:no:p:qstvxACD:F:I:L:MNO:PR:S:TVw:XY")) != -1) { 275 "1246ab:c:e:fgi:kl:m:no:p:qstvxACD:F:I:KL:MNO:PR:S:TVw:XY")) != -1) {
276 switch (opt) { 276 switch (opt) {
277 case '1': 277 case '1':
278 options.protocol = SSH_PROTO_1; 278 options.protocol = SSH_PROTO_1;
@@ -326,6 +326,9 @@ main(int ac, char **av)
326 case 'k': 326 case 'k':
327 options.gss_deleg_creds = 0; 327 options.gss_deleg_creds = 0;
328 break; 328 break;
329 case 'K':
330 options.gss_deleg_creds = 1;
331 break;
329 case 'i': 332 case 'i':
330 if (stat(optarg, &st) < 0) { 333 if (stat(optarg, &st) < 0) {
331 fprintf(stderr, "Warning: Identity file %s " 334 fprintf(stderr, "Warning: Identity file %s "
@@ -378,7 +381,12 @@ main(int ac, char **av)
378 } 381 }
379 break; 382 break;
380 case 'q': 383 case 'q':
381 options.log_level = SYSLOG_LEVEL_QUIET; 384 if (options.log_level == SYSLOG_LEVEL_QUIET) {
385 options.log_level = SYSLOG_LEVEL_SILENT;
386 }
387 else if (options.log_level != SYSLOG_LEVEL_SILENT) {
388 options.log_level = SYSLOG_LEVEL_QUIET;
389 }
382 break; 390 break;
383 case 'e': 391 case 'e':
384 if (optarg[0] == '^' && optarg[2] == 0 && 392 if (optarg[0] == '^' && optarg[2] == 0 &&