From 50960b5c42e47ac33556468ce263c2dc3c44abf6 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sat, 13 Apr 2024 19:21:56 -0400 Subject: kernel: filedesc: Increment offset per read() Signed-off-by: Ian Moffett --- sys/kern/kern_filedesc.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sys') diff --git a/sys/kern/kern_filedesc.c b/sys/kern/kern_filedesc.c index 8e15d48..5488c35 100644 --- a/sys/kern/kern_filedesc.c +++ b/sys/kern/kern_filedesc.c @@ -337,6 +337,7 @@ read(int fd, void *buf, size_t count) } bytes_read = vfs_read(vnode, &sio); + fd_desc->offset += bytes_read; return bytes_read; } -- cgit v1.2.3