* telnetd.c (doit): additional fix for previous terminaltype change
authorDan Winship <danw@mit.edu>
Wed, 28 Jan 1998 22:22:50 +0000 (22:22 +0000)
committerDan Winship <danw@mit.edu>
Wed, 28 Jan 1998 22:22:50 +0000 (22:22 +0000)
(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

src/appl/telnet/telnetd/ChangeLog
src/appl/telnet/telnetd/telnetd.c

index 63300283964f42b2e00807d23d887c3ed78709b0..31eaf8e476fd385e68f8f90efa07b85e7f248355 100644 (file)
@@ -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
index dceaab7b3036b0f8daab2fd3b0d8171362379bf8..54fc12a3991fb98bf590ad80415aa5b0036d23e7 100644 (file)
@@ -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