[2459] in Kerberos-V5-bugs

home help back first fref pref prev next nref lref last post

pending/193: krb5-beta7: appl/bsd/login.c doesn't preserve TERM env var

daemon@ATHENA.MIT.EDU (John Gardiner Myers)
Thu Nov 14 19:57:29 1996

Resent-From: gnats@rt-11.MIT.EDU (GNATS Management)
Resent-To: gnats-admin@rt-11.MIT.EDU
Resent-Reply-To: krb5-bugs@MIT.EDU, John Gardiner Myers <jgm@cmu.edu>
Date: Thu, 14 Nov 1996 16:56:18 -0800 (PST)
From: John Gardiner Myers <jgm@cmu.edu>
To: krb5-bugs@MIT.EDU


>Number:         193
>Category:       pending
>Synopsis:       krb5-beta7: appl/bsd/login.c doesn't preserve TERM env var
>Confidential:   yes
>Severity:       serious
>Priority:       medium
>Responsible:    gnats-admin
>State:          open
>Class:          sw-bug
>Submitter-Id:   unknown
>Arrival-Date:   Thu Nov 14 19:57:01 EST 1996
>Last-Modified:
>Originator:
>Organization:
>Release:
>Environment:
>Description:
>How-To-Repeat:
>Fix:
>Audit-Trail:
>Unformatted:
login.krb5 doesn't preserve the value of the TERM environment variable.
Fix follows:

Index: login.c
===================================================================
RCS file: /usr/system/portola/cvsroot/security/krb5/src/appl/bsd/login.c,v
retrieving revision 1.1.1.1
diff -c -r1.1.1.1 login.c
*** login.c     1996/11/02 20:53:38     1.1.1.1
--- login.c     1996/11/15 00:51:54
***************
*** 1312,1317 ****
--- 1312,1321 ----
  #endif
        (void)fcntl(0, F_SETFL, ioctlval);
  
+       if ((p = getenv("TERM")) && strlen(p) < sizeof(term)) {
+           strcpy(term, p);
+       }
+ 
        /*
         * If talking to an rlogin process, propagate the terminal type
and
         * baud rate across the network.



home help back first fref pref prev next nref lref last post