Kernel - Fixed a bug in VFS_ParsePath that cause symlinks to break
[tpg/acess2.git] / Kernel / vfs / io.c
index 7260df7..212a7c2 100644 (file)
@@ -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