summaryrefslogtreecommitdiff
path: root/usr.bin/login/login.c
diff options
context:
space:
mode:
authorflipk <flipk@cvs.openbsd.org>1997-02-04 03:39:12 +0000
committerflipk <flipk@cvs.openbsd.org>1997-02-04 03:39:12 +0000
commitf0665df2b87465f110f0e0b56b1bd5bc90c6540a (patch)
tree1f207ce14e177dcc335b7fb9f209bfbbad54568a /usr.bin/login/login.c
parentb1ab1f4d18edb814fa104953c9f99303974a7cb9 (diff)
make it compile if KERBEROS{,5} not defined
Diffstat (limited to 'usr.bin/login/login.c')
-rw-r--r--usr.bin/login/login.c14
1 files 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)
@@ -240,7 +245,6 @@ main(argc, argv)
} else
instance = "";
#endif
-#endif
if (strlen(username) > UT_NAMESIZE)
username[UT_NAMESIZE] = '\0';