From 1fea59b606034d056977494b1a8ab41686f442f7 Mon Sep 17 00:00:00 2001 From: flipk Date: Tue, 4 Feb 1997 03:39:11 +0000 Subject: [PATCH] make it compile if KERBEROS{,5} not defined --- usr.bin/login/login.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/usr.bin/login/login.c b/usr.bin/login/login.c index 59f556a9b8a..c628c6d4940 100644 --- a/usr.bin/login/login.c +++ b/usr.bin/login/login.c @@ -1,4 +1,4 @@ -/* $OpenBSD: login.c,v 1.17 1997/01/27 20:44:14 dm Exp $ */ +/* $OpenBSD: login.c,v 1.18 1997/02/04 03:39:11 flipk Exp $ */ /* $NetBSD: login.c,v 1.13 1996/05/15 23:50:16 jtc Exp $ */ /*- @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)login.c 8.4 (Berkeley) 4/2/94"; #endif -static char rcsid[] = "$OpenBSD: login.c,v 1.17 1997/01/27 20:44:14 dm Exp $"; +static char rcsid[] = "$OpenBSD: login.c,v 1.18 1997/02/04 03:39:11 flipk Exp $"; #endif /* not lint */ /* @@ -221,9 +221,14 @@ main(argc, argv) getloginname(); } rootlogin = 0; -#if 1 /* Why should anyone with a root instance be able to be root here? */ + +#if defined(KERBEROS) || defined(KERBEROS5) + /* + * Why should anyone with a root instance be able + * to be root here? + */ instance = ""; -#else +#endif #ifdef KERBEROS if ((instance = strchr(username, '.')) != NULL) { if (strncmp(instance, ".root", 5) == 0) @@ -239,7 +244,6 @@ main(argc, argv) *instance++ = '\0'; } else instance = ""; -#endif #endif if (strlen(username) > UT_NAMESIZE) username[UT_NAMESIZE] = '\0'; -- 2.20.1