| Summary: | net-ftp/pure-ftpd doesn't report UTF8 in FEAT command if force_passive_ip | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Dennis Huang <owlhuang> |
| Component: | [OLD] Server | Assignee: | Luca Longinotti (RETIRED) <chtekk> |
| Status: | RESOLVED FIXED | ||
| Severity: | minor | CC: | net-ftp, owlhuang |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | patch file for ftpd.c | ||
|
Description
Dennis Huang
2008-09-26 09:14:21 UTC
In the file src/ftpd.c, function dofeat(), FEAT_UTF8 will be truncated if either disallow_passive or force_passive_ip is true. I would like to propose to move FEAT_UTF8 in front of both FEAT_ESTP and FEAT_PASV in feat[].
Code snippet as following.
----------------------------------
char feat[] = FEAT FEAT_DEBUG FEAT_TVFS FEAT_ESTP FEAT_PASV FEAT_ESTA FEAT_TLS FEAT_UTF8;
if (disallow_passive != 0) {
feat[sizeof FEAT FEAT_DEBUG FEAT_TVFS FEAT_ESTP] = 0;
}
#ifndef MINIMAL
else if (STORAGE_FAMILY(force_passive_ip) != 0) {
feat[sizeof FEAT FEAT_DEBUG FEAT_TVFS FEAT_ESTP FEAT_PASV] = 0;
}
#endif
addreply_noformat(0, feat);
addreply_noformat(211, "End.");
}
Created attachment 166466 [details, diff]
patch file for ftpd.c
Proposed patch file
Adding net-ftp herd. Sorry this bug got lost in the bugzilla maze :/ Looking at ftpd.c source in 1.0.28 (which is in stabling process), it seems this is fixed and we can close this bug If it is not, of course feel free to reopen it! Marking fixed with 1.0.28, and again sorry for this bug delay |