diff options
author | woodsb02 <woodsb02@FreeBSD.org> | 2017-07-23 15:34:42 +0000 |
---|---|---|
committer | woodsb02 <woodsb02@FreeBSD.org> | 2017-07-23 15:34:42 +0000 |
commit | 81a52369dc49cd438a7a2561abbdda1a9c21b5fd (patch) | |
tree | 4f23413fb6b49034fe2a2dbafab3cbca15194822 | |
parent | fb0f27f4c50c0b971edc00161aa67c0c6573c70b (diff) | |
download | FreeBSD-ports-81a52369dc49cd438a7a2561abbdda1a9c21b5fd.zip FreeBSD-ports-81a52369dc49cd438a7a2561abbdda1a9c21b5fd.tar.gz |
MFH: r446488
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
Approved by: ports-secteam blanket
-rw-r--r-- | misc/mc/Makefile | 2 | ||||
-rw-r--r-- | misc/mc/files/patch-src_filemanager_midnight.c | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/misc/mc/Makefile b/misc/mc/Makefile index 2c1cbe9..6e93893 100644 --- a/misc/mc/Makefile +++ b/misc/mc/Makefile @@ -3,7 +3,7 @@ PORTNAME= mc PORTVERSION= 4.8.19 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= misc shells MASTER_SITES= http://ftp.midnight-commander.org/ \ http://ftp.osuosl.org/pub/midnightcommander/ diff --git a/misc/mc/files/patch-src_filemanager_midnight.c b/misc/mc/files/patch-src_filemanager_midnight.c new file mode 100644 index 0000000..6c9946b --- /dev/null +++ b/misc/mc/files/patch-src_filemanager_midnight.c @@ -0,0 +1,11 @@ +--- 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; + } + |