summaryrefslogtreecommitdiff
path: root/ssh.c
diff options
context:
space:
mode:
Diffstat (limited to 'ssh.c')
-rw-r--r--ssh.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/ssh.c b/ssh.c
index 1f19229b7..d85e56fd7 100644
--- a/ssh.c
+++ b/ssh.c
@@ -337,7 +337,12 @@ again:
337 exit(0); 337 exit(0);
338 break; 338 break;
339 case 'q': 339 case 'q':
340 options.log_level = SYSLOG_LEVEL_QUIET; 340 if (options.log_level == SYSLOG_LEVEL_QUIET) {
341 options.log_level = SYSLOG_LEVEL_SILENT;
342 }
343 else if (options.log_level != SYSLOG_LEVEL_SILENT) {
344 options.log_level = SYSLOG_LEVEL_QUIET;
345 }
341 break; 346 break;
342 case 'e': 347 case 'e':
343 if (optarg[0] == '^' && optarg[2] == 0 && 348 if (optarg[0] == '^' && optarg[2] == 0 &&