git.ucc.asn.au
/
tpg
/
acess2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f4ae01
)
Added position check to VFS_ReadDir
author
John Hodge
<
[email protected]
>
Fri, 25 Sep 2009 06:52:19 +0000
(14:52 +0800)
committer
John Hodge
<
[email protected]
>
Fri, 25 Sep 2009 06:52:19 +0000
(14:52 +0800)
Kernel/vfs/dir.c
patch
|
blob
|
history
diff --git
a/Kernel/vfs/dir.c
b/Kernel/vfs/dir.c
index
043d49c
..
b7af755
100644
(file)
--- a/
Kernel/vfs/dir.c
+++ b/
Kernel/vfs/dir.c
@@
-148,6
+148,11
@@
int VFS_ReadDir(int FD, char *Dest)
return 0;
}
+ if(h->Position >= h->Node->Size) {
+ LEAVE('i', 0);
+ return 0;
+ }
+
tmp = h->Node->ReadDir(h->Node, h->Position);
LOG("tmp = '%s'", tmp);
UCC
git Repository :: git.ucc.asn.au