[3047] in Kerberos-V5-bugs

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

krb5-appl/697: login.krb5 willfully eits tty window size

daemon@ATHENA.MIT.EDU (danw@MIT.EDU)
Sun Feb 28 14:54:13 1999

Resent-From: gnats@rt-11.MIT.EDU (GNATS Management)
Resent-To: krb5-unassigned@RT-11.MIT.EDU
Resent-Reply-To: krb5-bugs@MIT.EDU, danw@MIT.EDU
Date: Sun, 28 Feb 1999 14:53:14 -0500
From: danw@MIT.EDU
Reply-To: danw@MIT.EDU
To: krb5-bugs@MIT.EDU
Cc: nathanw@MIT.EDU


>Number:         697
>Category:       krb5-appl
>Synopsis:       login.krb5 willfully eits tty window size
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    krb5-unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   unknown
>Arrival-Date:   Sun Feb 28 14:54:01 EST 1999
>Last-Modified:
>Originator:     Dan Winship
>Organization:
Athena
>Release:        1.0
>Environment:
	
System: IRIX antharia 6.3 12161207 IP32


>Description:
	login.c contains this dubious fragment:
  
    if (!hflag && !rflag && !kflag && !Kflag && !eflag) {       /* XXX */
        static struct winsize win = { 0, 0, 0, 0 };

        (void)ioctl(0, TIOCSWINSZ, (char *)&win);
    }

	which has no apparent purpose other than to confuse the tty
	driver about the size of the screen. In particular, if you
	have login.krb5 as the getty-invoked login (as on an Athena
	machine) and are running NetBSD with the new wscons code,
	you'll lose in a variety of obnoxious ways until you run
	stty or resize to fix your tty settings.

	This code (including the /* XXX */) seems to have come
	originally from the 4.3BSD login source. It's not there in the
	4.4BSD source.

>How-To-Repeat:
	
>Fix:
	I nuked that code and everything seems to work fine...
>Audit-Trail:
>Unformatted:

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