even without -p option. [326]
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10017
dc483132-0cff-0310-8789-
dd5450dbe970
+Tue Mar 18 12:34:03 1997 Sam Hartman <hartmans@luminous.MIT.EDU>
+
+ [326] * login.c(doit): Preserve terminal even without -p.
+
Thu Feb 27 10:58:07 1997 Sam Hartman <hartmans@luminous.MIT.EDU>
* krshd.c: Allow user to login with / as home directory if homedir
*/
if (eflag)
lgetstr(term, sizeof(term), "Terminal type");
+ else if (!(kflag || Kflag )) /*Preserve terminal if not read over net */
+ {
+ if (getenv("TERM"))
+ strncpy(term, getenv("TERM"), sizeof(term));
+ }
+
term_init (rflag || kflag || Kflag || eflag);
for (cnt = getdtablesize(); cnt > 2; cnt--)