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
Kernel - Working on allowing \0 out debug
[tpg/acess2.git]
/
KernelLand
/
Kernel
/
vfs
/
dir.c
diff --git
a/KernelLand/Kernel/vfs/dir.c
b/KernelLand/Kernel/vfs/dir.c
index
cd45121
..
add48b0
100644
(file)
--- a/
KernelLand/Kernel/vfs/dir.c
+++ b/
KernelLand/Kernel/vfs/dir.c
@@
-104,9
+104,11
@@
int VFS_MkNod(const char *Path, Uint Flags)
return ret==NULL;
_error:
return ret==NULL;
_error:
- _CloseNode(parent);
- ASSERT(mountpt->OpenHandleCount>0);
- mountpt->OpenHandleCount --;
+ if( parent ) {
+ _CloseNode(parent);
+ ASSERT(mountpt->OpenHandleCount>0);
+ mountpt->OpenHandleCount --;
+ }
free(absPath);
LEAVE('i', -1);
return -1;
free(absPath);
LEAVE('i', -1);
return -1;
@@
-178,10
+180,12
@@
int VFS_ReadDir(int FD, char *Dest)
return 0;
}
return 0;
}
+ #if 0
if(h->Node->Size != (Uint64)-1 && h->Position >= h->Node->Size) {
//LEAVE('i', 0);
return 0;
}
if(h->Node->Size != (Uint64)-1 && h->Position >= h->Node->Size) {
//LEAVE('i', 0);
return 0;
}
+ #endif
do {
rv = h->Node->Type->ReadDir(h->Node, h->Position, Dest);
do {
rv = h->Node->Type->ReadDir(h->Node, h->Position, Dest);
UCC
git Repository :: git.ucc.asn.au