summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorBen Woods <woodsb02@FreeBSD.org>2017-07-23 15:34:42 +0000
committerBen Woods <woodsb02@FreeBSD.org>2017-07-23 15:34:42 +0000
commit327fb157b425e3ab03c009871730b78c15eb0d4a (patch)
tree4f23413fb6b49034fe2a2dbafab3cbca15194822 /misc
parentMFH: r446391 (diff)
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
Diffstat (limited to 'misc')
-rw-r--r--misc/mc/Makefile2
-rw-r--r--misc/mc/files/patch-src_filemanager_midnight.c11
2 files changed, 12 insertions, 1 deletions
diff --git a/misc/mc/Makefile b/misc/mc/Makefile
index 2c1cbe9d313d..6e93893b18a6 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 000000000000..6c9946b16e96
--- /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;
+ }
+