diff options
author | ache <ache@FreeBSD.org> | 1996-06-17 18:35:16 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1996-06-17 18:35:16 +0000 |
commit | 28e5db027122e5f7684d09362a425f63bbc5c4a2 (patch) | |
tree | 4d42ea8abc269753202eb191f45a2b1b89e69c2e | |
parent | d3feab4d48ab41741a2f78f808268b0cbe989045 (diff) | |
download | FreeBSD-src-28e5db027122e5f7684d09362a425f63bbc5c4a2.zip FreeBSD-src-28e5db027122e5f7684d09362a425f63bbc5c4a2.tar.gz |
Don't try convert "-" to numeric form for -n option
-rw-r--r-- | usr.bin/w/w.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/w/w.c b/usr.bin/w/w.c index 06c9d72..96b0a2b 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) { |