Changeset bde6ac20 in rtems for cpukit/ftpd/ftpd.c


Ignore:
Timestamp:
Nov 20, 2018, 3:45:51 PM (5 months ago)
Author:
kuaLeYi <kualeyidxa@…>
Branches:
master
Children:
94529131
Parents:
edae517
git-author:
kuaLeYi <kualeyidxa@…> (11/20/18 15:45:51)
git-committer:
Joel Sherrill <joel@…> (11/20/18 15:45:51)
Message:

Misc: Minor English fixes (GCI 2018)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ftpd/ftpd.c

    redae517 rbde6ac20  
    11/* FIXME: 1. Parse command is a hack.  We can do better.
    22 *        2. OSV: hooks support seems to be bad, as it requires storing of
    3  *           entire input file in memory.  Seem to be better to change it to
     3 *           entire input file in memory.  Seems to be better to change it to
    44 *           something more reasonable, like having
    55 *           'hook_write(void const *buf, int count)' routine that will be
     
    3535 *      * Bug in `close_data_socket()' introduced by previous change fixed.
    3636 *      * `command_pasv()' changed to set timeout on socket we are listening on
    37  *        and code fixed to don't close socket twice on error.
     37 *        and code fixed to not close socket twice on error.
    3838 *      * `serr()' changed to clear `errno'.
    3939 *      * `data_socket()' changed to clear `errno' before `bind()'.
     
    6868 *        converted to upper-case to be more compatible with RFC (command
    6969 *        names are not case-sensitive.)
    70  *      * Reformat comments so that they have RTEMS look-and-feel.
     70 *      * Reformat comments so that they have RTEMS look and feel.
    7171 *
    7272 *    2001-01-16        Sergei Organov <osv@javad.ru>
     
    228228#define FTPD_SYSTYPE "UNIX Type: L8"
    229229
    230 /* Seem to be unused */
     230/* Seems to be unused */
    231231#if 0
    232232#define FTPD_WELCOME_MESSAGE \
     
    310310{
    311311/*
    312  * If we build not for the legacy network stack, then we use the libbsd.  In
     312 * If we do not build for the legacy network stack, then we use the libbsd.  In
    313313 * the libbsd there is no global network stack semaphore which provides round
    314314 * robin fairness for threads of equal priority.
     
    14761476    if(i == NUM_FIELDS)
    14771477    {
    1478       /* Note: while it contradicts with RFC959, we don't allow PORT command
    1479        * to specify IP address different than those of the originating client
     1478      /* Note: while it contradicts RFC959, we don't allow PORT command
     1479       * to specify IP address different from that of the originating client
    14801480       * for the sake of safety. */
    14811481      if (ip_info.u.ip == info->def_addr.sin_addr.s_addr)
     
    18561856 * session
    18571857 *
    1858  * This task handles single session.  It is waked up when the FTP daemon gets a
     1858 * This task handles single session.  It is woken up when the FTP daemon gets a
    18591859 * service request from a remote machine.  Here, we watch for commands that
    18601860 * will come through the control connection.  These commands are then parsed
     
    19161916
    19171917          /*
    1918            * We could also try to continue here, however, discarding the rest
     1918           * We could also try to continue here; however, discarding the rest
    19191919           * of the current command line and figuring out when the next command
    19201920           * starts with fgets() is not that easy.  It would be better to avoid
Note: See TracChangeset for help on using the changeset viewer.