git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Added NULL check to VFS_ReadDir
[tpg/acess2.git]
/
Kernel
/
vfs
/
fs
/
root.c
diff --git
a/Kernel/vfs/fs/root.c
b/Kernel/vfs/fs/root.c
index
95e308a
..
4a81715
100644
(file)
--- a/
Kernel/vfs/fs/root.c
+++ b/
Kernel/vfs/fs/root.c
@@
-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