]> 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)
commit185c09c4b01a8e722e0f59570351a0c7db2366b2
treec914e31b45e69a9cde8a44136a036045de231fc4
parent768387c70fbc9a9247afb945bbae0887c1e9c498
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