From f99096106a98f0616662ad05a55991220691151b Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sat, 26 Sep 2009 10:01:03 +0800 Subject: [PATCH] Fixed support for indeterminate sized directories --- Kernel/vfs/dir.c | 2 +- Kernel/vfs/fs/fat.c | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Kernel/vfs/dir.c b/Kernel/vfs/dir.c index b7133c50..5702986c 100644 --- a/Kernel/vfs/dir.c +++ b/Kernel/vfs/dir.c @@ -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; } diff --git a/Kernel/vfs/fs/fat.c b/Kernel/vfs/fs/fat.c index c0c3fbab..dd5e8518 100644 --- a/Kernel/vfs/fs/fat.c +++ b/Kernel/vfs/fs/fat.c @@ -489,8 +489,6 @@ tVFS_Node *FAT_int_CreateNode(tVFS_Node *parent, fat_filetable *ft, char *LongFi ENTER("pParent pFT sLongFileName", parent, ft, LongFileName); - // Get Name - //node.Name = FAT_int_CreateName(parent, ft, LongFileName); // Set Other Data node.Inode = ft->cluster | (ft->clusterHi<<16); node.Size = ft->size; -- 2.20.1