mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-01 23:43:35 +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 New Issue
Block a user