<pre style='margin:0'>
Marius Schamschula (Schamschula) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/ae04502c4c7cb1c914df19627764ae78c0b8b4f0">https://github.com/macports/macports-ports/commit/ae04502c4c7cb1c914df19627764ae78c0b8b4f0</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new ae04502 inetutils 1.9.4: use jmroot's telnet patch
</span>ae04502 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit ae04502c4c7cb1c914df19627764ae78c0b8b4f0
</span>Author: Marius Schamschula <mps@macports.org>
AuthorDate: Thu Jul 12 13:25:36 2018 -0500
<span style='display:block; white-space:pre;color:#404040;'> inetutils 1.9.4: use jmroot's telnet patch
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Closes: https://trac.macports.org/ticket/55493
</span>---
net/inetutils/Portfile | 6 ++--
net/inetutils/files/telnet_telnet.c.patch | 52 +++++++++++++++++++++++++++++++
2 files changed, 55 insertions(+), 3 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/inetutils/Portfile b/net/inetutils/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index ea55028..6e814d4 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/net/inetutils/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/inetutils/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -4,7 +4,7 @@ PortSystem 1.0
</span>
name inetutils
version 1.9.4
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 5
</span> categories net
license GPL-3+
maintainers {mps @Schamschula} openmaintainer
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -23,11 +23,11 @@ checksums rmd160 0c144d9ac0b5c07beca1e634fc5b2c5bae15917d \
</span>
depends_lib port:readline
<span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles telnet_telnet.c.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> configure.args --infodir=${prefix}/share/info \
--mandir=${prefix}/share/man \
--disable-servers
<span style='display:block; white-space:pre;background:#ffe0e0;'>-configure.cflags-append -D_FORTIFY_SOURCE=0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-configure.optflags -O0
</span>
if {${os.platform} eq "darwin" && ${os.major} < 17} {
configure.args-append --program-prefix=g
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/inetutils/files/telnet_telnet.c.patch b/net/inetutils/files/telnet_telnet.c.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..4a604a6
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/inetutils/files/telnet_telnet.c.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,52 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- telnet/telnet.c.orig 2015-04-01 02:40:50.000000000 +1100
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ telnet/telnet.c 2018-07-13 02:34:26.000000000 +1000
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -830,6 +830,9 @@ gettermname (void)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * Linemode
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++/* enough to hold a DISPLAY that could theoretically be up to PATH_MAX long */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#define TEMPBUFSIZE 1024
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ static void
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ suboption (void)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -848,7 +851,7 @@ suboption (void)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ char *name;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- unsigned char temp[50];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ unsigned char temp[TEMPBUFSIZE];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int len;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #if defined TN3270
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -859,7 +862,7 @@ suboption (void)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif /* defined(TN3270) */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ name = gettermname ();
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ len = strlen (name) + 4 + 2;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if (len < NETROOM ())
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if (len < NETROOM () && len < TEMPBUFSIZE-1)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sprintf ((char *) temp, "%c%c%c%c%s%c%c", IAC, SB, TELOPT_TTYPE,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ TELQUAL_IS, name, IAC, SE);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -880,7 +883,7 @@ suboption (void)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (SB_GET () == TELQUAL_SEND)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ long ospeed, ispeed;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- unsigned char temp[50];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ unsigned char temp[TEMPBUFSIZE];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int len;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ TerminalSpeeds (&ispeed, &ospeed);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -987,10 +990,10 @@ suboption (void)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (SB_GET () == TELQUAL_SEND)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- unsigned char temp[50], *dp;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ unsigned char temp[TEMPBUFSIZE], *dp;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int len;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if ((dp = env_getvalue ("DISPLAY")) == NULL)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if ((dp = env_getvalue ("DISPLAY")) == NULL || strlen(dp) >= TEMPBUFSIZE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /*
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * Something happened, we no longer have a DISPLAY
</span></pre><pre style='margin:0'>
</pre>