1
0
mirror of git://projects.qi-hardware.com/wernermisc.git synced 2024-11-15 05:53:09 +02:00

m1/patches/rtems/fix-ftpd-root.patch: allow ftpd to start in /ssd/ (by Xiangfu Liu)

This commit is contained in:
Werner Almesberger 2012-01-03 10:18:53 -03:00
parent a673d62176
commit 73b9b503fe
2 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,39 @@
From: Xiangfu <xiangfu@sharism.cc>
Signed-off-by: Xiangfu <xiangfu@sharism.cc>
Index: rtems/cpukit/ftpd/ftpd.c
===================================================================
--- rtems.orig/cpukit/ftpd/ftpd.c 2012-01-03 10:16:17.000000000 -0300
+++ rtems/cpukit/ftpd/ftpd.c 2012-01-03 10:17:10.000000000 -0300
@@ -2068,6 +2068,14 @@
ftpd_access = rtems_ftpd_configuration.access;
+ if (
+ rtems_ftpd_configuration.root &&
+ rtems_ftpd_configuration.root[0] == '/'
+ )
+ ftpd_root = rtems_ftpd_configuration.root;
+
+ rtems_ftpd_configuration.root = ftpd_root;
+
if (rtems_ftpd_configuration.tasks_count <= 0)
rtems_ftpd_configuration.tasks_count = 1;
count = rtems_ftpd_configuration.tasks_count;
@@ -2100,15 +2108,6 @@
return RTEMS_UNSATISFIED;
}
- ftpd_root = "/";
- if (
- rtems_ftpd_configuration.root &&
- rtems_ftpd_configuration.root[0] == '/'
- )
- ftpd_root = rtems_ftpd_configuration.root;
-
- rtems_ftpd_configuration.root = ftpd_root;
-
syslog(LOG_INFO, "ftpd: FTP daemon started (%d session%s max)",
count, ((count > 1) ? "s" : ""));

View File

@ -16,3 +16,4 @@
#fix-timer-includes.patch
milkymist-usb-midi.patch
#milkymist-midi-opt.patch - applied 2011-12-06
fix-ftpd-root.patch