fredag den  4 mars 2011 klockan 09:37 skrev Rachid Koucha detta:
> Hi,
> 
> When we run ftpd in debug mode (option --debug on the command line), the
> server crashes upon incoming connections. The bug comes from the
> functions reply() and lreply() in the file ftpd/ftpd.c: The functions do
> not "reset" the "va_list" before calling syslog(). So, the latter gets
> the end of the list of arguments. This triggers a crash on my PowerPc
> based target !

This is correct. I myself resolved the identical error in Debian's
package linux-ftpd with an almost identical patching. It is the common
origin in netkit-ftpd that is the cause. The variation uses

     #ifdef __STDC__
             va_start(ap, fmt);
     #else
             va_start(ap);
     #end

in two passages.

Regards,
  Mats Erik Andersson

Reply via email to