Subject: Re: tty_login, tty_logout (was: pcvt and TIOCCONS)
To: David Carrel <carrel@cisco.com>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: current-users
Date: 04/22/1996 15:12:19
On Fri, 19 Apr 1996 13:59:57 -0700 
 David Carrel <carrel@cisco.com> wrote:

 > authorization fails and the login terminates.  Since the default will be to
 > not have any callout program, that case is easy.  Making a shell script
 > that always returns 0 (ie. may change devices, but never judges the
 > validity of the user's requested access) is quite easy.

Actually, the default is even easier ... if no matching line in 
/etc/whatever_the_file_is_called is found, login proceeds.  No need to 
call an external program that always exits with a status of 0.

BTW, for this "to continue or not continue" to work, the interface to 
tty_relatives() needs to change ... i.e. it needs to return an int, 0 for 
"continue" and non-zero (-1 probably) for "don't continue".

--------------------------------------------------------------------------
Jason R. Thorpe                                       thorpej@nas.nasa.gov
NASA Ames Research Center                               Home: 408.866.1912
NAS: M/S 258-6                                          Work: 415.604.0935
Moffett Field, CA 94035                                Pager: 415.428.6939