Changeset 796bb3f in rtems


Ignore:
Timestamp:
Feb 2, 2012, 7:33:09 PM (8 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
ce3caf87
Parents:
0f700ffc
Message:

PR 1998/networking - Move ftpd root initialization

From: Xiangfu <xiangfu@…>
Signed-off-by: Xiangfu <xiangfu@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ftpd/ftpd.c

    r0f700ffc r796bb3f  
    20692069  ftpd_access = rtems_ftpd_configuration.access;
    20702070
     2071  ftpd_root = "/";
     2072  if ( rtems_ftpd_configuration.root &&
     2073       rtems_ftpd_configuration.root[0] == '/' )
     2074    ftpd_root = rtems_ftpd_configuration.root;
     2075
     2076  rtems_ftpd_configuration.root = ftpd_root;
     2077
    20712078  if (rtems_ftpd_configuration.tasks_count <= 0)
    20722079    rtems_ftpd_configuration.tasks_count = 1;
     
    21012108  }
    21022109
    2103   ftpd_root = "/";
    2104   if (
    2105     rtems_ftpd_configuration.root &&
    2106     rtems_ftpd_configuration.root[0] == '/'
    2107   )
    2108     ftpd_root = rtems_ftpd_configuration.root;
    2109 
    2110   rtems_ftpd_configuration.root = ftpd_root;
    2111 
    21122110  syslog(LOG_INFO, "ftpd: FTP daemon started (%d session%s max)",
    21132111    count, ((count > 1) ? "s" : ""));
Note: See TracChangeset for help on using the changeset viewer.