Revert to the previous behaviour of only doing a utmp

login if we're -direct on a tty device.
This commit is contained in:
brian 1999-05-09 20:13:52 +00:00
parent 8e23ca2c50
commit 775e441973

View File

@ -16,7 +16,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
* $Id: physical.c,v 1.8 1999/04/27 00:23:56 brian Exp $
* $Id: physical.c,v 1.9 1999/05/08 11:07:22 brian Exp $
*
*/
@ -715,7 +715,7 @@ physical_IsSet(struct descriptor *d, const fd_set *fdset)
void
physical_Login(struct physical *p, const char *name)
{
if (p->type == PHYS_DIRECT && !p->Utmp) {
if (p->type == PHYS_DIRECT && *p->name.base && !p->Utmp) {
struct utmp ut;
const char *connstr;