aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2011-05-08 16:48:10 -0700
committerH. Peter Anvin <hpa@zytor.com>2011-05-08 16:48:10 -0700
commit28cbed47f60a153e38674727a4cdd8a42c268583 (patch)
tree6558505d5c5cf39904825f5fc7767490b7eb5462
parent50629fda7e1ff723c8e72d0b726693be9f0e9970 (diff)
downloadsyslinux-28cbed47f60a153e38674727a4cdd8a42c268583.tar.gz
syslinux-28cbed47f60a153e38674727a4cdd8a42c268583.tar.xz
syslinux-28cbed47f60a153e38674727a4cdd8a42c268583.zip
pxe, ftp: handle some DOS FTP stacks correctly
Handle stacks which output similar to DOS DIR format correctly. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--core/fs/pxe/ftp_readdir.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/fs/pxe/ftp_readdir.c b/core/fs/pxe/ftp_readdir.c
index 2eb7748c..6b87f77e 100644
--- a/core/fs/pxe/ftp_readdir.c
+++ b/core/fs/pxe/ftp_readdir.c
@@ -32,6 +32,7 @@ static int dirtype(char type)
case 'b':
return DT_BLK;
case '-':
+ case '0' ... '9': /* Some DOS FTP stacks */
return DT_REG;
case 'l':
return DT_LNK;