Fixed support for indeterminate sized directories
authorJohn Hodge <[email protected]>
Sat, 26 Sep 2009 02:01:03 +0000 (10:01 +0800)
committerJohn Hodge <[email protected]>
Sat, 26 Sep 2009 02:01:03 +0000 (10:01 +0800)
Kernel/vfs/dir.c
Kernel/vfs/fs/fat.c

index b7133c5..5702986 100644 (file)
@@ -148,7 +148,7 @@ int VFS_ReadDir(int FD, char *Dest)
                return 0;
        }
        
-       if(h->Position >= h->Node->Size) {
+       if(h->Node->Size != -1 && h->Position >= h->Node->Size) {
                LEAVE('i', 0);
                return 0;
        }
index c0c3fba..dd5e851 100644 (file)
@@ -489,8 +489,6 @@ tVFS_Node *FAT_int_CreateNode(tVFS_Node *parent, fat_filetable *ft, char *LongFi
        \r
        ENTER("pParent pFT sLongFileName", parent, ft, LongFileName);\r
        \r
-       // Get Name\r
-       //node.Name = FAT_int_CreateName(parent, ft, LongFileName);\r
        // Set Other Data\r
        node.Inode = ft->cluster | (ft->clusterHi<<16);\r
        node.Size = ft->size;\r

UCC git Repository :: git.ucc.asn.au