freebsd-ports/misc/mc/files/patch-src_filemanager_midnight.c
Ben Woods 6569209074 misc/mc: Fix invalid tty baudrate detection disabling verbose mode
PR:		220944
Submitted by:	Michael Büker <m.bueker@berlin.de>
Obtained from:	https://midnight-commander.org/ticket/2452#comment:15
MFH:		2017Q3
2017-07-23 15:26:36 +00:00

11 lines
420 B
C

--- src/filemanager/midnight.c.orig 2017-03-04 17:51:38 UTC
+++ src/filemanager/midnight.c
@@ -879,7 +879,7 @@ setup_mc (void)
add_select_channel (mc_global.tty.subshell_pty, load_prompt, 0);
#endif /* !ENABLE_SUBSHELL */
- if ((tty_baudrate () < 9600) || mc_global.tty.slow_terminal)
+ if ((tty_baudrate () > 0 && tty_baudrate () < 9600) || mc_global.tty.slow_terminal)
verbose = FALSE;
}