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 - Fixed a bug in VFS_ParsePath that cause symlinks to break
[tpg/acess2.git]
/
Kernel
/
vfs
/
io.c
diff --git
a/Kernel/vfs/io.c
b/Kernel/vfs/io.c
index
7260df7
..
212a7c2
100644
(file)
--- a/
Kernel/vfs/io.c
+++ b/
Kernel/vfs/io.c
@@
-144,6
+144,8
@@
int VFS_Seek(int FD, Sint64 Offset, int Whence)
// Set relative to end of file
if(Whence < 0) {
+ if( h->Node->Size == -1 ) return -1;
+
h->Position = h->Node->Size - Offset;
return 0;
}
UCC
git Repository :: git.ucc.asn.au