mirror of
git://projects.qi-hardware.com/wernermisc.git
synced 2024-11-15 08:50:38 +02:00
m1/patches/rtems/fix-ftpd-root.patch: allow ftpd to start in /ssd/ (by Xiangfu Liu)
This commit is contained in:
parent
a673d62176
commit
73b9b503fe
39
m1/patches/rtems/fix-ftpd-root.patch
Normal file
39
m1/patches/rtems/fix-ftpd-root.patch
Normal 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" : ""));
|
||||||
|
|
@ -16,3 +16,4 @@
|
|||||||
#fix-timer-includes.patch
|
#fix-timer-includes.patch
|
||||||
milkymist-usb-midi.patch
|
milkymist-usb-midi.patch
|
||||||
#milkymist-midi-opt.patch - applied 2011-12-06
|
#milkymist-midi-opt.patch - applied 2011-12-06
|
||||||
|
fix-ftpd-root.patch
|
||||||
|
Loading…
Reference in New Issue
Block a user