Changeset 1343dfa3 in rtems


Ignore:
Timestamp:
Jun 7, 2011, 9:08:37 AM (9 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
a447527
Parents:
68e60ddb
Message:

2011-06-07 Sebastian Huber <sebastian.huber@…>

PR 1811/networking

  • ftpd/ftpd.c: Fixed reply format.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r68e60ddb r1343dfa3  
     12011-06-07      Sebastian Huber <sebastian.huber@embedded-brains.de>
     2
     3        PR 1811/networking
     4        * ftpd/ftpd.c: Fixed reply format.
     5
    162011-05-26      Jennifer Averett <Jennifer.Averett@OARcorp.com>
    27
  • cpukit/ftpd/ftpd.c

    r68e60ddb r1343dfa3  
    553553send_reply(FTPD_SessionInfo_t  *info, int code, char *text)
    554554{
    555   char const* s = (info->xfer_mode == TYPE_A) ? "\r" : "";
    556   /* If a text reply exists, add it to the reply data. */
    557   if (text != NULL)
    558     fprintf(info->ctrl_fp, "%d %.70s%s\n", code, text, s);
    559   else
    560     fprintf(info->ctrl_fp, "%d%s\n", code, s);
     555  text = text != NULL ? text : "";
     556  fprintf(info->ctrl_fp, "%d %.70s\r\n", code, text);
    561557  fflush(info->ctrl_fp);
    562558}
Note: See TracChangeset for help on using the changeset viewer.