Added NULL check to VFS_ReadDir
[tpg/acess2.git] / Kernel / vfs / fs / root.c
index 95e308a..4a81715 100644 (file)
@@ -19,7 +19,9 @@ tRamFS_File   *Root_int_AllocFile();
 
 // === GLOBALS ===
 tVFS_Driver    gRootFS_Info = {
-       "rootfs", 0, Root_InitDevice,
+       "rootfs", 0,
+       Root_InitDevice,
+       NULL,   // Unmount
        NULL
 };
 tRamFS_File    RootFS_Files[MAX_FILES];
@@ -106,6 +108,8 @@ int Root_MkNod(tVFS_Node *Node, char *Name, Uint Flags)
        
        prev->Next = child;
        
+       parent->Node.Size ++;
+       
        return 1;
 }
 

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