[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#409788: openssh: specifying quiet option twice does not silence completely



Package: openssh
Severity: minor
Tags: patch


When specifying the quiet option twice (or more), ssh will still print the "Connection to 
host closed." message (suppressed with quiet once), because the loglevel checks in the code 
use != instead of >, see attached patch, there might be more places in the code that need 
to be changed.

Regards,
Jaap

-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.8-3-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
--- ssh.c.orig	2007-02-05 14:52:54.477884402 +0100
+++ ssh.c	2007-02-05 14:56:28.310341060 +0100
@@ -1429,5 +1429,5 @@
 	leave_raw_mode();
 
-	if (tty_flag && options.log_level != SYSLOG_LEVEL_QUIET)
+	if (tty_flag && options.log_level > SYSLOG_LEVEL_QUIET)
 		fprintf(stderr, "Connection to master closed.\r\n");
 

Reply to: