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
Usermode/AxWin3 - More WM IPC messages implemented
[tpg/acess2.git]
/
Kernel
/
vfs
/
io.c
diff --git
a/Kernel/vfs/io.c
b/Kernel/vfs/io.c
index
7260df7
..
358d703
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) {
// Set relative to end of file
if(Whence < 0) {
+ if( h->Node->Size == -1 ) return -1;
+
h->Position = h->Node->Size - Offset;
return 0;
}
h->Position = h->Node->Size - Offset;
return 0;
}
@@
-180,7
+182,12
@@
int VFS_FInfo(int FD, tFInfo *Dest, int MaxACLs)
h = VFS_GetHandle(FD);
if(!h) return -1;
h = VFS_GetHandle(FD);
if(!h) return -1;
-
+
+ if( h->Mount )
+ Dest->mount = h->Mount->Identifier;
+ else
+ Dest->mount = 0;
+ Dest->inode = h->Node->Inode;
Dest->uid = h->Node->UID;
Dest->gid = h->Node->GID;
Dest->size = h->Node->Size;
Dest->uid = h->Node->UID;
Dest->gid = h->Node->GID;
Dest->size = h->Node->Size;
UCC
git Repository :: git.ucc.asn.au