mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
seek: take offset into account with SEEK_END
This commit is contained in:
@@ -67,7 +67,7 @@ syscallret_t syscall_seek(context_t *context, int fd, off_t offset, int whence)
|
||||
}
|
||||
break;
|
||||
case SEEK_END:
|
||||
newoffset = size;
|
||||
newoffset = size + offset;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user