[En-Nut-Discussion] FTPD - RMD command response

Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Wed May 27 11:45:31 CEST 2015

>>>>> "Paweł" == Paweł  <pawel8542 at o2.pl> writes:

    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); }

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?

Uwe Bonnes                bon at elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------

More information about the En-Nut-Discussion mailing list