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)
commit0b5faf6ba7fb78bb1fe7336d23ea1978386a6c3a
treec914e31b45e69a9cde8a44136a036045de231fc4
parentff002b30181d30cdfbca316dadd099c3ca0d739c
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