[prev in list] [next in list] [prev in thread] [next in thread] 

List:       proftpd-committers
Subject:    [ProFTPD-committers] [Bug 2752] FEAT reply not RFC 2389 compliant
From:       bugzilla-daemon () boost ! horde ! net
Date:       2006-02-21 0:50:13
Message-ID: 200602210050.k1L0oDml001630 () boost ! horde ! net
[Download RAW message or body]

http://bugs.proftpd.org/show_bug.cgi?id=2752





------- Comment #3 from mb@smartftp.com  2006-02-20 19:50 -------
I'm sorry but your patch is wrong. It produces this output:
211-Features:
211-MDTM
 REST STREAM
 SIZE
211 End

The following version works correctly:

MODRET core_feat(cmd_rec *cmd) {
  const char *feat = NULL;
  CHECK_CMD_ARGS(cmd, 1);

  feat = pstrdup(cmd->tmp_pool, "Features:");
  if(feat) {
    const char *next;
    for(next = pr_feat_get(); next; next = pr_feat_get_next()) 
      feat = pstrcat(cmd->tmp_pool, feat, "\n ", next, NULL);

    pr_response_add(R_211, "%s", feat);
    pr_response_add(R_DUP, "End");
    return HANDLED(cmd);
  }
  return DECLINED(cmd);
}


-- 
Configure bugmail: http://bugs.proftpd.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
ProFTPD Committers Mailing List
proftpd-committers@proftpd.org
https://lists.sourceforge.net/lists/listinfo/proftp-committers
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic