From: Sam Hartman Date: Thu, 20 Mar 1997 01:46:02 +0000 (+0000) Subject: dditional patch for login environment variable processing: respect TERM X-Git-Tag: krb5-1.1-beta1~1181 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=62440ff7cc7d4e820654b0c8802aee1d8b4b05a2;p=krb5.git dditional patch for login environment variable processing: respect TERM even without -p option. [326] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10017 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/bsd/ChangeLog b/src/appl/bsd/ChangeLog index 27e30d20e..df05407a8 100644 --- a/src/appl/bsd/ChangeLog +++ b/src/appl/bsd/ChangeLog @@ -1,3 +1,7 @@ +Tue Mar 18 12:34:03 1997 Sam Hartman + + [326] * login.c(doit): Preserve terminal even without -p. + Thu Feb 27 10:58:07 1997 Sam Hartman * krshd.c: Allow user to login with / as home directory if homedir diff --git a/src/appl/bsd/login.c b/src/appl/bsd/login.c index 659a8bdc0..68ca4126b 100644 --- a/src/appl/bsd/login.c +++ b/src/appl/bsd/login.c @@ -1327,6 +1327,12 @@ int rewrite_ccache = 1; /*try to write out ccache*/ */ 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--)