-/* $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 $ */
/*-
#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 */
/*
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)
*instance++ = '\0';
} else
instance = "";
-#endif
#endif
if (strlen(username) > UT_NAMESIZE)
username[UT_NAMESIZE] = '\0';