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
Fixed heap troubles (and bugs in VFS_GetTruePath)
[tpg/acess2.git]
/
Kernel
/
vfs
/
dir.c
diff --git
a/Kernel/vfs/dir.c
b/Kernel/vfs/dir.c
index
fbfc3af
..
3e004b9
100644
(file)
--- a/
Kernel/vfs/dir.c
+++ b/
Kernel/vfs/dir.c
@@
-61,7
+61,12
@@
int VFS_MkNod(char *Path, Uint Flags)
else
parent = VFS_ParsePath(absPath, NULL);
else
parent = VFS_ParsePath(absPath, NULL);
- if(!parent) return -1; // Error Check
+ LOG("parent = %p", parent);
+
+ if(!parent) {
+ LEAVE('i', -1);
+ return -1; // Error Check
+ }
// Permissions Check
if( !VFS_CheckACL(parent, VFS_PERM_EXECUTE|VFS_PERM_WRITE) ) {
// Permissions Check
if( !VFS_CheckACL(parent, VFS_PERM_EXECUTE|VFS_PERM_WRITE) ) {
UCC
git Repository :: git.ucc.asn.au