[2736] in Kerberos-V5-bugs

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

krb5-appl/428: appl/bsd/login.c: need "new" tty discipline for all shells

daemon@ATHENA.MIT.EDU (Donn Cave)
Mon May 19 20:34:46 1997

Resent-From: gnats@rt-11.MIT.EDU (GNATS Management)
Resent-To: krb5-unassigned@RT-11.MIT.EDU
Resent-Reply-To: krb5-bugs@MIT.EDU, donn@u.washington.edu
Date: Mon, 19 May 1997 17:31:59 -0700
From: Donn Cave <donn@u.washington.edu>
Reply-To: donn@u.washington.edu
To: krb5-bugs@MIT.EDU


>Number:         428
>Category:       krb5-appl
>Synopsis:       login.krb5 limits new tty discipline to csh.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    krb5-unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   unknown
>Arrival-Date:   Mon May 19 20:33:00 EDT 1997
>Last-Modified:
>Originator:     Donn Cave
>Organization:
	University Computing Services
	University of Washington
>Release:        1.0pl1
>Environment:
	Ultrix 4.2
System: AIX melville 2 4 000010504900


>Description:
	All users should get the same line discipline, whether they
	use csh, or ksh or bash or what have you.  NTTYDISC is the
	right one for all of them, on Ultrix.

>How-To-Repeat:
>Fix:
	Context diff appended.
	----------------------
*** src/appl/bsd/login.c.dist	Wed Apr  2 23:35:11 1997
--- src/appl/bsd/login.c	Mon May 19 17:02:13 1997
***************
*** 1801,1811 ****
  	if (*pwd->pw_shell == '\0')
  		pwd->pw_shell = BSHELL;
  #if defined(NTTYDISC) && defined(TIOCSETD)
! 	/* turn on new line discipline for the csh */
! 	if (!strcmp(pwd->pw_shell, "/bin/csh")) {
! 		ioctlval = NTTYDISC;
! 		(void)ioctl(0, TIOCSETD, (char *)&ioctlval);
! 	}
  #endif
  
  	ccname = getenv("KRB5CCNAME");  /* save cache */
--- 1801,1809 ----
  	if (*pwd->pw_shell == '\0')
  		pwd->pw_shell = BSHELL;
  #if defined(NTTYDISC) && defined(TIOCSETD)
! 	/* turn on new line discipline for job control shells. */
! 	ioctlval = NTTYDISC;
! 	(void)ioctl(0, TIOCSETD, (char *)&ioctlval);
  #endif
  
  	ccname = getenv("KRB5CCNAME");  /* save cache */
>Audit-Trail:
>Unformatted:

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