From e310e7bc9896afba970d834278c27f5dead95a49 Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Tue, 14 Jul 2009 00:15:11 +0200 Subject: [PATCH] telnetd: Fix a bug (really use the return value of tty_istrapsig()). --- crypto/telnet/telnetd/termstat.c | 2 +- libexec/telnetd/termstat.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto/telnet/telnetd/termstat.c b/crypto/telnet/telnetd/termstat.c index 85adfee..3d49959 100644 --- a/crypto/telnet/telnetd/termstat.c +++ b/crypto/telnet/telnetd/termstat.c @@ -435,7 +435,7 @@ clientstat(int code, int parm1, int parm2) useeditmode = 0; if (tty_isediting()) useeditmode |= MODE_EDIT; - if (tty_istrapsig) + if (tty_istrapsig()) useeditmode |= MODE_TRAPSIG; if (tty_issofttab()) useeditmode |= MODE_SOFT_TAB; diff --git a/libexec/telnetd/termstat.c b/libexec/telnetd/termstat.c index 22eb758..d141ff0 100644 --- a/libexec/telnetd/termstat.c +++ b/libexec/telnetd/termstat.c @@ -413,7 +413,7 @@ clientstat(int code, int parm1, int parm2) useeditmode = 0; if (tty_isediting()) useeditmode |= MODE_EDIT; - if (tty_istrapsig) + if (tty_istrapsig()) useeditmode |= MODE_TRAPSIG; if (tty_issofttab()) useeditmode |= MODE_SOFT_TAB; -- 1.7.7.2