| Summary: | non connect virtual hosting support in ftpd daemon | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Base System | Reporter: | isv <isv> | ||||
| Component: | bin | Assignee: | davidn | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Only Me | ||||||
| Priority: | Normal | ||||||
| Version: | Unspecified | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
Responsible Changed From-To: freebsd-ports->freebsd-bugs Misfiled PR. Responsible Changed From-To: freebsd-bugs->davidn I first implemented this, so my bug State Changed From-To: open->feedback Originator asked to produce an example of this failing. Patch supplied does not appear to be applicable. State Changed From-To: feedback->closed Fixed by: /home/ncvs/src/libexec/ftpd/ftpd.c,v <-- ftpd.c new revision: 1.64; previous revision: 1.63 done This fix is different from the diff supplied with the PR. It fixes the real problem, which was in parsing /etc/ftphosts and folding lines. |
FreeBSD ftp daemon have bugs in "selecthost" function, that causes not correct virtual hosting support. I have detected that in FreeBSD release 4.0. selecthost(su) union sockunion *su; { ... while (hrp != NULL) { for (hi = hrp->hostinfo; hi != NULL; hi = hi->ai_next) { if (memcmp(su, hi->ai_addr, hi->ai_addrlen) == 0) { How-To-Repeat: Add any vistual host to /etc/ftphosts with necessary rules, described in man ftpd. and try login to this host as anonymous user. You will be wonder, because we will enter to base host ;)