]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: allow AT_FDCWD for non-file openat/openat2/statx
authorJens Axboe <axboe@kernel.dk>
Fri, 7 Feb 2020 04:42:51 +0000 (21:42 -0700)
committerJens Axboe <axboe@kernel.dk>
Sat, 8 Feb 2020 20:07:00 +0000 (13:07 -0700)
commit4ecb3d423d9160bcad2505f6bd22fe96fa96fd84
treec914e31b45e69a9cde8a44136a036045de231fc4
parent3b74cfc349d5deff80a63f84db533022cbc58314
io_uring: allow AT_FDCWD for non-file openat/openat2/statx

Don't just check for dirfd == -1, we should allow AT_FDCWD as well for
relative lookups.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c