pxe, ftp: support readdir for FTP
commit4c9b4b40238d6afda386d1d5fb088cbc9aa68c42
authorH. Peter Anvin <hpa@zytor.com>
Wed, 4 May 2011 06:37:10 +0000 (3 23:37 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Wed, 4 May 2011 06:37:10 +0000 (3 23:37 -0700)
tree5e4207e34047461c281619bb3ff6f6d6b77d02a1
parent40068cfcbf723c9363194bf20a80b80a53c249fd
pxe, ftp: support readdir for FTP

Support readdir for FTP.  This uses some heuristics for parsing LIST
output which (hopefully) works on most systems... there is no hope for
weird filenames with leading spaces or control characters, though.
That would require MLSD support, which doesn't seem to be very common.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
core/fs/pxe/ftp.c
core/fs/pxe/ftp_readdir.c [new file with mode: 0644]
core/fs/pxe/pxe.c
core/fs/pxe/pxe.h