seek: take offset into account with SEEK_END

This commit is contained in:
Qwinci
2025-01-13 16:23:29 +02:00
parent 881f225b58
commit 19789ad043
+1 -1
View File
@@ -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;
}