diff options
-rw-r--r-- | src/appl/bsd/ChangeLog | 4 | ||||
-rw-r--r-- | src/appl/bsd/login.c | 6 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/appl/bsd/ChangeLog b/src/appl/bsd/ChangeLog index 27e30d2..df05407 100644 --- a/src/appl/bsd/ChangeLog +++ b/src/appl/bsd/ChangeLog @@ -1,3 +1,7 @@ +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 diff --git a/src/appl/bsd/login.c b/src/appl/bsd/login.c index 659a8bd..68ca412 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--) |