]> xenbits.xensource.com Git - unikraft/unikraft.git/commit
lib/posix-fdio: Fix lseek error on readonly files
authorAndrei Tatar <andrei@unikraft.io>
Tue, 18 Mar 2025 16:37:54 +0000 (17:37 +0100)
committerUnikraft Bot <monkey@unikraft.io>
Thu, 27 Mar 2025 17:23:26 +0000 (17:23 +0000)
commite6edc8e15036dca32a81dd4b93572c6cdaebf87d
tree8577145ae89cebb15ec62c13de61c041527f0209
parent6dadb454e5b509113f5b39bd0849684cb2396382
lib/posix-fdio: Fix lseek error on readonly files

Previously lseek would wrongly fail when seeking a read-only-opened
file due to a logic error. This change fixes this oversight.

Signed-off-by: Andrei Tatar <andrei@unikraft.io>
Approved-by: Sergiu Moga <sergiu@unikraft.io>
Reviewed-by: Sergiu Moga <sergiu@unikraft.io>
GitHub-Closes: #1602
lib/posix-fdio/fdio.c