summaryrefslogtreecommitdiff
path: root/fs/fat
diff options
context:
space:
mode:
authorwdenk <wdenk>2003-09-11 19:48:06 +0000
committerwdenk <wdenk>2003-09-11 19:48:06 +0000
commita43278a43d522fba7fea0ed3045b718a9c8d22ac (patch)
treec21920a271992ce76e5e679c3e3e8bb11054d356 /fs/fat
parent7205e4075d8b50e4dd89fe39ed03860b23cbb704 (diff)
downloadu-boot-imx-a43278a43d522fba7fea0ed3045b718a9c8d22ac.zip
u-boot-imx-a43278a43d522fba7fea0ed3045b718a9c8d22ac.tar.gz
u-boot-imx-a43278a43d522fba7fea0ed3045b718a9c8d22ac.tar.bz2
* Patch by Gary Jennejohn, 11 Sep 2003:
- allow for longer timeouts for USB mass storage devices * Patch by Denis Peter, 11 Sep 2003: - fix USB data pointer assignment for bulk only transfer. - prevent to display erased directories in FAT filesystem. * Change output format for NAND flash - make it look like for other memory, too
Diffstat (limited to 'fs/fat')
-rw-r--r--fs/fat/fat.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/fat/fat.c b/fs/fat/fat.c
index 6a6c5be..972ef33 100644
--- a/fs/fat/fat.c
+++ b/fs/fat/fat.c
@@ -860,9 +860,11 @@ do_fat_read (const char *filename, void *buffer, unsigned long maxsize,
int doit = 0;
if (isdir) {
- dirs++;
dirc = '/';
- doit = 1;
+ if (s_name[0] != 0) {
+ dirs++;
+ doit = 1;
+ }
} else {
dirc = ' ';
if (s_name[0] != 0) {