read: fix file offset

This commit is contained in:
Matheus
2023-05-13 21:13:32 -03:00
parent af2459a042
commit cbb7c7544f
+1
View File
@@ -28,6 +28,7 @@ syscallret_t syscall_read(context_t *context, int fd, void *buffer, size_t size)
if (ret.errno)
goto cleanup;
file->offset += bytesread;
ret.ret = bytesread;
ret.errno = 0;