summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/appl/bsd/ChangeLog4
-rw-r--r--src/appl/bsd/krlogin.c10
2 files changed, 12 insertions, 2 deletions
diff --git a/src/appl/bsd/ChangeLog b/src/appl/bsd/ChangeLog
index 70ce9c0af..7ceafc066 100644
--- a/src/appl/bsd/ChangeLog
+++ b/src/appl/bsd/ChangeLog
@@ -1,3 +1,7 @@
+Sat Feb 22 00:54:06 1997 Sam Hartman <hartmans@luminous.MIT.EDU>
+
+ * krlogin.c (mode): Clean up Posix terminal handling for NetBSD.
+
Tue Feb 18 18:03:55 1997 Richard Basch <basch@lehman.com>
* krcp.c: Replace krb5_xfree with krb5_free_data_contents
diff --git a/src/appl/bsd/krlogin.c b/src/appl/bsd/krlogin.c
index d3c745142..b4288773f 100644
--- a/src/appl/bsd/krlogin.c
+++ b/src/appl/bsd/krlogin.c
@@ -1383,6 +1383,12 @@ mode(f)
{
#ifdef POSIX_TERMIOS
struct termios newtty;
+#ifndef IEXTEN
+#define IEXTEN 0 /* No effect*/
+#endif
+#ifndef _POSIX_VDISABLE
+#define _POSIX_VDISABLE 0 /*A good guess at the disable-this-character character*/
+#endif
switch(f) {
case 0:
@@ -1398,10 +1404,10 @@ mode(f)
/* was __svr4__ */
#ifdef VLNEXT
/* there's a POSIX way of doing this, but do we need it general? */
- newtty.c_cc[VLNEXT] = 0;
+ newtty.c_cc[VLNEXT] = _POSIX_VDISABLE;
#endif
- newtty.c_lflag &= ~(ICANON|ISIG|ECHO);
+ newtty.c_lflag &= ~(ICANON|ISIG|ECHO|IEXTEN);
newtty.c_iflag &= ~(ISTRIP|INLCR|ICRNL);
if (!flow) {