Newsgroups: comp.unix.ultrix
Path: utzoo!utgpu!watserv1!watcgl!idallen
From: idallen@watcgl.waterloo.edu (Ian! D. Allen [CGL])
Subject: Re: DS3100 Login problems
Message-ID: <1990Jul20.225020.15697@watcgl.waterloo.edu>
Organization: Computer Graphics Laboratory, University of Waterloo, Ontario, Canada
References: <10554@batcomputer.tn.cornell.edu>
Date: Fri, 20 Jul 90 22:50:20 GMT
Lines: 30

>There was also a suggestion that there was a timer that counts the time
>between typing the user name and password that denies access if the time
>is too long.

Here's what I said last March:

From idallen Sat Mar 31 02:53:46 1990
To: comp.unix.ultrix

This binary:

    ULTBASE031.inv:0000     68608   15096   0       0       104755  5/2/89
        031    f ./usr/bin/login none    ULTBASE031

presumably made from this Ultrix 3.1 source:

    static char *sccsid = "@(#)login.c      9.5    (ULTRIX)        5/1/89";

This change:

 *      029 - Gary A. Gaudet. Fri Apr 21 21:57:43 EDT 1989
 *              Added unbuffered stdin, cyphered name and password,
 *              and bzero buffer, for -P.

is wrong.  It unbuffers stdin between two fgets() calls, causing
pending stuff to be lost and Xprompter to fail.  Putting a call to
setbuf() to do the unbuffering before the first fgets() fixes things.
-- 
-IAN! (Ian! D. Allen) idallen@watcgl.uwaterloo.ca idallen@watcgl.waterloo.edu
 [129.97.128.64]  Computer Graphics Lab/University of Waterloo/Ontario/Canada
