diff options
author | ume <ume@FreeBSD.org> | 2005-05-13 16:31:11 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2005-05-13 16:31:11 +0000 |
commit | e33ba033454acbec171e04edba1395842e412b5c (patch) | |
tree | 9ae1266a1a3de18e5409202ab088ec8928d3410e /libexec/tftpd | |
parent | 4c5083a81ce14f96f4193b746c54f7e17d94e21b (diff) | |
download | FreeBSD-src-e33ba033454acbec171e04edba1395842e412b5c.zip FreeBSD-src-e33ba033454acbec171e04edba1395842e412b5c.tar.gz |
NI_WITHSCOPEID cleanup. Neither RFC 2553 nor RFC 3493 defines
NI_WITHSCOPEID, and our getaddrinfo(3) does nothing special
for it, now.
Diffstat (limited to 'libexec/tftpd')
-rw-r--r-- | libexec/tftpd/tftpd.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libexec/tftpd/tftpd.c b/libexec/tftpd/tftpd.c index 84c961c..9c1ec2a 100644 --- a/libexec/tftpd/tftpd.c +++ b/libexec/tftpd/tftpd.c @@ -266,7 +266,7 @@ main(int argc, char *argv[]) unmappedaddr((struct sockaddr_in6 *)&ss); getnameinfo((struct sockaddr *)&ss, ss.ss_len, hbuf, sizeof(hbuf), NULL, 0, - NI_NUMERICHOST | NI_WITHSCOPEID); + NI_NUMERICHOST); asprintf(&tempchroot, "%s/%s", chroot_dir, hbuf); if (ipchroot == 2) statret = stat(tempchroot, &sb); @@ -487,8 +487,7 @@ option_fail: char hbuf[NI_MAXHOST]; getnameinfo((struct sockaddr *)&from, from.ss_len, - hbuf, sizeof(hbuf), NULL, 0, - NI_WITHSCOPEID); + hbuf, sizeof(hbuf), NULL, 0, 0); syslog(LOG_INFO, "%s: %s request for %s: %s", hbuf, tp->th_opcode == WRQ ? "write" : "read", filename, errtomsg(ecode)); |