summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-04-13 19:21:56 -0400
committerIan Moffett <ian@osmora.org>2024-04-13 19:21:56 -0400
commit50960b5c42e47ac33556468ce263c2dc3c44abf6 (patch)
tree0c20db8aced1d8471dfdd674c4afe7b6ca27154f /sys/kern
parent19c9a82f6fe0dc25c4edd142d77745d7742a4703 (diff)
kernel: filedesc: Increment offset per read()
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_filedesc.c1
1 files changed, 1 insertions, 0 deletions
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;
}