-/* $OpenBSD: login.c,v 1.18 1997/02/04 03:39:11 flipk Exp $ */
+/* $OpenBSD: login.c,v 1.19 1997/02/16 04:39:07 downsj Exp $ */
/* $NetBSD: login.c,v 1.13 1996/05/15 23:50:16 jtc Exp $ */
/*-
#if 0
static char sccsid[] = "@(#)login.c 8.4 (Berkeley) 4/2/94";
#endif
-static char rcsid[] = "$OpenBSD: login.c,v 1.18 1997/02/04 03:39:11 flipk Exp $";
+static char rcsid[] = "$OpenBSD: login.c,v 1.19 1997/02/16 04:39:07 downsj Exp $";
#endif /* not lint */
/*
(void)printf("Logging in with home = \"/\".\n");
}
- quietlog = access(_PATH_HUSHLOGIN, F_OK) == 0;
+ quietlog = ((strcmp(pwd->pw_shell, "/sbin/nologin") == 0) ||
+ (access(_PATH_HUSHLOGIN, F_OK) == 0));
seteuid(0);
setegid(0); /* XXX use a saved gid instead? */