diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2004-08-30 23:00:23 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2004-08-30 23:00:23 +0000 |
commit | 00c70d7fff922e5e2c2556e6abd2965f0663dde8 (patch) | |
tree | a4a2bc3a8e9e7cf2856ca93c98561fd34083fa7b /usr.bin | |
parent | 1402206aea23283dab63e8f68c4cc82e49db7fc2 (diff) |
For username foo.bar, don't treat "bar" as a kerberos instance,
that was a kerb4'ism. OK deraadt@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/login/login.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/login/login.c b/usr.bin/login/login.c index acf1a1c4791..e2cdea51f69 100644 --- a/usr.bin/login/login.c +++ b/usr.bin/login/login.c @@ -1,4 +1,4 @@ -/* $OpenBSD: login.c,v 1.54 2004/01/23 04:36:37 millert Exp $ */ +/* $OpenBSD: login.c,v 1.55 2004/08/30 23:00:22 millert Exp $ */ /* $NetBSD: login.c,v 1.13 1996/05/15 23:50:16 jtc Exp $ */ /*- @@ -73,7 +73,7 @@ static const char copyright[] = #if 0 static const char sccsid[] = "@(#)login.c 8.4 (Berkeley) 4/2/94"; #endif -static const char rcsid[] = "$OpenBSD: login.c,v 1.54 2004/01/23 04:36:37 millert Exp $"; +static const char rcsid[] = "$OpenBSD: login.c,v 1.55 2004/08/30 23:00:22 millert Exp $"; #endif /* not lint */ /* @@ -426,7 +426,7 @@ main(int argc, char *argv[]) quickexit(1); } rootlogin = 0; - if ((instance = strpbrk(username, "./")) != NULL) { + if ((instance = strchr(username, '/')) != NULL) { if (strncmp(instance + 1, "root", 4) == 0) rootlogin = 1; *instance++ = '\0'; |