aboutsummaryrefslogtreecommitdiff
path: root/src/appl
diff options
context:
space:
mode:
authorDan Winship <danw@mit.edu>1998-01-28 22:22:50 +0000
committerDan Winship <danw@mit.edu>1998-01-28 22:22:50 +0000
commit519b3133fd556a2952372f736c42a6e81ef7ce6b (patch)
treec590d6b5adda81c23361c3cc9146d4bd683f75c4 /src/appl
parent077f5ae764ae27d1de71c8f1c9f0fcbb33a7b3e6 (diff)
downloadkrb5-519b3133fd556a2952372f736c42a6e81ef7ce6b.zip
krb5-519b3133fd556a2952372f736c42a6e81ef7ce6b.tar.gz
krb5-519b3133fd556a2952372f736c42a6e81ef7ce6b.tar.bz2
* telnetd.c (doit): additional fix for previous terminaltype change
(fixes a bug that caused TERM to be set to "") git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10384 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/appl')
-rw-r--r--src/appl/telnet/telnetd/ChangeLog4
-rw-r--r--src/appl/telnet/telnetd/telnetd.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/src/appl/telnet/telnetd/ChangeLog b/src/appl/telnet/telnetd/ChangeLog
index 6330028..31eaf8e 100644
--- a/src/appl/telnet/telnetd/ChangeLog
+++ b/src/appl/telnet/telnetd/ChangeLog
@@ -1,3 +1,7 @@
+Wed Jan 28 17:21:08 1998 Dan Winship <danw@mit.edu>
+
+ * telnetd.c (doit): additional fix for previous terminaltype change
+
Tue Jan 27 18:27:16 1998 Dan Winship <danw@mit.edu>
* telnetd.c (getterminaltype): Null-terminate strings and avoid a
diff --git a/src/appl/telnet/telnetd/telnetd.c b/src/appl/telnet/telnetd/telnetd.c
index dceaab7..54fc12a 100644
--- a/src/appl/telnet/telnetd/telnetd.c
+++ b/src/appl/telnet/telnetd/telnetd.c
@@ -974,7 +974,7 @@ pty_init();
*/
*user_name = 0;
level = getterminaltype(user_name);
- setenv("TERM", terminaltype ? terminaltype : "network", 1);
+ setenv("TERM", *terminaltype ? terminaltype : "network", 1);
/*
* Start up the login process on the slave side of the terminal