]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - fs/fat/fat.c
* Patch by Gary Jennejohn, 11 Sep 2003:
[karo-tx-uboot.git] / fs / fat / fat.c
index 6a6c5be0168ed4043fbe7f78404b44f2456f39b3..972ef33d03c4a2d7445e850fe0e3fa9706ee5f2f 100644 (file)
@@ -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) {