[En-Nut-Discussion] FTPD - RMD command response
Paweł
pawel8542 at o2.pl
Fri May 29 09:23:53 CEST 2015
> Paweł> Hello Response for RMD command should be 250, but now it
> Paweł> is 257. Sometimes it can cause small problems.
>
> Paweł> regards Pawel
>
> Paweł> --- /nut/pro/ftpd.c-revBASE.svn000.tmp.c +++ /nut/pro/ftpd.c @@
> Paweł> -1131,7 +1131,7 @@ if (rmdir(path)) { return
> Paweł> NutFtpRespondBad(session, 451); } - return
> Paweł> NutFtpRespondOk(session, 257); + return NutFtpRespondOk(session,
> Paweł> 250); }
> Hello,
>
> as nobody of the eth developpers chaimed in yet, here some feedback from me:
>
> http://en.wikipedia.org/wiki/List_of_FTP_server_return_codes says:
> 250 Requested file action okay, completed.
> 257 "PATHNAME" created.
>
> http://cr.yp.to/ftp/stor.html "The RMD verb" says:
> ===
> The RMD verb
> An RMD request asks the server to remove a directory. The RMD parameter is
> an encoded pathname specifying the directory.
>
> A typical server accepts RMD with code 250 if the directory was
> successfully removed, or rejects RMD with code 550 if the removal failed.
>
> RFC 1123 requires that the server treat XRMD as a synonym for RMD.
> ===
> So where does your information of a return code of 257 come from?
>
> Thanks
Hello
As I see code 250 is good for both of us ;-)
But in ethernut trunk pro/ftpd.c, function NutFtpProcessRmd
is something different - NutFtpRespondOk(session, 257);
regards
Pawel
More information about the En-Nut-Discussion
mailing list