Ethernut 5.2.2 - When browsing the FTP server, folders other than root return "550:File not found"
This appeared to be due to stray trailing slashes in pathnames. In order to make it work as expected I added the following code to /nut/pro/ftpd.c, in function CreateFullPathName(), at line 382 (just after the work directory gets stripped of trailing slash):
~~~~
if (pl && pl > 1 && (path + pl - 1) == '/') {
(path + pl - 1) = 0;
pl--;
}
~~~~~
This strips the path of any trailing slashes as well, allowing the subsequent code to produce valid pathnames.
Tested on Tickernut (mega2561 on 1.3g compatible homebrew hardware)
Full FTP functionality available (except PASV, which appears to have some other problem.)
Fixed in rev. [r5776].
Related
Commit: [r5776]
Last edit: Ole Reinhardt 2014-08-20