From 0fd06e5d7cea6fdb1347c0e0b1089988d0d8ca39 Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Mon, 17 Jun 1996 18:35:16 +0000 Subject: [PATCH] Don't try convert "-" to numeric form for -n option --- usr.bin/w/w.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/w/w.c b/usr.bin/w/w.c index 06c9d727730d..96b0a2b45c65 100644 --- a/usr.bin/w/w.c +++ b/usr.bin/w/w.c @@ -323,7 +323,7 @@ main(argc, argv) } p = hp->h_name; } - if (nflag && inet_addr(p) == INADDR_NONE) { + if (nflag && strcmp(p, "-") && inet_addr(p) == INADDR_NONE) { hp = gethostbyname(p); if (hp != NULL) {