io_uring/fs: consider link->flags when getting path for LINKAT
authorCharles Mirabile <cmirabil@redhat.com>
Mon, 20 Nov 2023 10:55:45 +0000 (05:55 -0500)
committerJens Axboe <axboe@kernel.dk>
Mon, 20 Nov 2023 16:01:42 +0000 (09:01 -0700)
commit8479063f1fbee201a8739130e816cc331b675838
tree4dcd46e9f1452720fe74187f52cf734f63fd1a83
parenta0d45c3f596be53c1bd8822a1984532d14fdcea9
io_uring/fs: consider link->flags when getting path for LINKAT

In order for `AT_EMPTY_PATH` to work as expected, the fact
that the user wants that behavior needs to make it to `getname_flags`
or it will return ENOENT.

Fixes: cf30da90bc3a ("io_uring: add support for IORING_OP_LINKAT")
Cc: <stable@vger.kernel.org>
Link: https://github.com/axboe/liburing/issues/995
Signed-off-by: Charles Mirabile <cmirabil@redhat.com>
Link: https://lore.kernel.org/r/20231120105545.1209530-1-cmirabil@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/fs.c