Skip to content
Unverified Commit f520bed2 authored by Jan Kara's avatar Jan Kara Committed by Christian Brauner
Browse files

fs/xattr: Fix handling of AT_FDCWD in setxattrat(2) and getxattrat(2)



Currently, setxattrat(2) and getxattrat(2) are wrongly handling the
calls of the from setxattrat(AF_FDCWD, NULL, AT_EMPTY_PATH, ...) and
fail with -EBADF error instead of operating on CWD. Fix it.

Fixes: 6140be90 ("fs/xattr: add *at family syscalls")
Signed-off-by: default avatarJan Kara <jack@suse.cz>
Link: https://lore.kernel.org/20250424132246.16822-2-jack@suse.cz


Signed-off-by: default avatarChristian Brauner <brauner@kernel.org>
parent 1d28f25d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment