From 8b8419023f0ac16d2915457a8f8425a198d3cdbf Mon Sep 17 00:00:00 2001 From: "Yury V. Zaytsev" Date: Tue, 22 Oct 2024 13:24:30 +0200 Subject: [PATCH] Ticket #2452: handle -1 (baudrate error) by *not* disabling verbose mode implicitly If we can't reliably identify slow terminal, we should not implicitly disable verbose mode, instead let user disable it manually by starting with the slow terminal switch. Signed-off-by: Yury V. Zaytsev --- src/filemanager/filemanager.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/filemanager/filemanager.c b/src/filemanager/filemanager.c index d0088d17b..f8d1ca57e 100644 --- a/src/filemanager/filemanager.c +++ b/src/filemanager/filemanager.c @@ -854,7 +854,8 @@ setup_mc (void) #endif /* HAVE_CHARSET */ #endif /* HAVE_SLANG */ - if ((tty_baudrate () < 9600) || mc_global.tty.slow_terminal) + const int baudrate = tty_baudrate (); + if ((baudrate > 0 && baudrate < 9600) || mc_global.tty.slow_terminal) verbose = FALSE; }