]> xenbits.xensource.com Git - unikraft/unikraft.git/commit
lib/posix-fdio: Fix lseek relative from file end
authorAndrei Tatar <andrei@unikraft.io>
Tue, 18 Mar 2025 16:43:38 +0000 (17:43 +0100)
committerUnikraft Bot <monkey@unikraft.io>
Thu, 27 Mar 2025 17:23:26 +0000 (17:23 +0000)
commit43829daf760ea73fb7d03a18e60c1a8590ec07d9
treedd410333cb978fec6c378b4f1f7260d171f2d5b9
parente6edc8e15036dca32a81dd4b93572c6cdaebf87d
lib/posix-fdio: Fix lseek relative from file end

This change fixes a bug in lseek where the file cursor was always set to
the end of file on SEEK_END, ignoring any passed-in offset.

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