PR 1811/networking
	* ftpd/ftpd.c: Fixed reply format.
This commit is contained in:
Sebastian Huber
2011-06-07 09:08:37 +00:00
parent 68e60ddbff
commit 1343dfa314
2 changed files with 7 additions and 6 deletions

View File

@@ -1,3 +1,8 @@
2011-06-07 Sebastian Huber <sebastian.huber@embedded-brains.de>
PR 1811/networking
* ftpd/ftpd.c: Fixed reply format.
2011-05-26 Jennifer Averett <Jennifer.Averett@OARcorp.com>
PR 1796/cpukit

View File

@@ -552,12 +552,8 @@ task_pool_release(FTPD_SessionInfo_t* info)
static void
send_reply(FTPD_SessionInfo_t *info, int code, char *text)
{
char const* s = (info->xfer_mode == TYPE_A) ? "\r" : "";
/* If a text reply exists, add it to the reply data. */
if (text != NULL)
fprintf(info->ctrl_fp, "%d %.70s%s\n", code, text, s);
else
fprintf(info->ctrl_fp, "%d%s\n", code, s);
text = text != NULL ? text : "";
fprintf(info->ctrl_fp, "%d %.70s\r\n", code, text);
fflush(info->ctrl_fp);
}