]> xenbits.xensource.com Git - unikraft/unikraft.git/commit
lib/posix-fdio: Fix missing error in fcntl(GETFD)
authorAndrei Tatar <andrei@unikraft.io>
Tue, 18 Mar 2025 16:48:20 +0000 (17:48 +0100)
committerUnikraft Bot <monkey@unikraft.io>
Thu, 27 Mar 2025 17:23:26 +0000 (17:23 +0000)
commitebcfc3cc62d70956ba91946189cd7c41ebc1d764
treecf223d5d931e9630249f028bd3fff1bfe8d26a34
parent43829daf760ea73fb7d03a18e60c1a8590ec07d9
lib/posix-fdio: Fix missing error in fcntl(GETFD)

This change fixes a bug where fcntl(F_GETFD) would swallow error codes
from uk_fdtab_getflags and not return them up the callstack.

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/fd-shim.c