diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2000-12-23 02:07:50 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2000-12-23 02:07:50 +0000 |
commit | eaad7518fa6a2d87a707afc8b13a7b8cb00430ef (patch) | |
tree | 60a7a31ebeca7aab5399409407397aae33388dc0 /usr.bin | |
parent | a1b92401eb39772968a923b3bcde7607a35cdbcd (diff) |
hostnames are case-insensitive; brian
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/w/w.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/w/w.c b/usr.bin/w/w.c index e496fee7514..67029faafa7 100644 --- a/usr.bin/w/w.c +++ b/usr.bin/w/w.c @@ -1,4 +1,4 @@ -/* $OpenBSD: w.c,v 1.30 2000/07/07 21:09:02 deraadt Exp $ */ +/* $OpenBSD: w.c,v 1.31 2000/12/23 02:07:49 deraadt Exp $ */ /*- * Copyright (c) 1980, 1991, 1993, 1994 @@ -43,7 +43,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)w.c 8.4 (Berkeley) 4/16/94"; #else -static char *rcsid = "$OpenBSD: w.c,v 1.30 2000/07/07 21:09:02 deraadt Exp $"; +static char *rcsid = "$OpenBSD: w.c,v 1.31 2000/12/23 02:07:49 deraadt Exp $"; #endif #endif /* not lint */ @@ -325,7 +325,8 @@ main(argc, argv) p = hp->h_name; p += strlen(hp->h_name); p -= strlen(domain); - if (p > hp->h_name && strcmp(p, domain) == 0) + if (p > hp->h_name && + strcasecmp(p, domain) == 0) *p = '\0'; } p = hp->h_name; |