diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 1996-06-17 18:35:16 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 1996-06-17 18:35:16 +0000 |
commit | 0fd06e5d7cea6fdb1347c0e0b1089988d0d8ca39 (patch) | |
tree | 4d42ea8abc269753202eb191f45a2b1b89e69c2e | |
parent | 808aa7aa51d6664fa382a57d20c72ff7259a4874 (diff) | |
download | src-0fd06e5d7cea6fdb1347c0e0b1089988d0d8ca39.tar.gz src-0fd06e5d7cea6fdb1347c0e0b1089988d0d8ca39.zip |
Notes
-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 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) { |