mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
Don't try convert "-" to numeric form for -n option
This commit is contained in:
parent
808aa7aa51
commit
0fd06e5d7c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=16443
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue