summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMax Kellermann <max.kellermann@gmail.com>2020-05-07 21:09:16 +0200
committerMax Kellermann <max.kellermann@gmail.com>2020-06-22 23:06:01 +0200
commitfd6d46bbc9b91e490d3526a0c2d157108dc83e94 (patch)
tree45bda62dc35b351a410f6ea1e94cfadedeaea24d /test
parent98cbe6a1a29dd66a7cc758b753d051d0b319584f (diff)
downloadliburing-fd6d46bbc9b91e490d3526a0c2d157108dc83e94.tar.gz
liburing-fd6d46bbc9b91e490d3526a0c2d157108dc83e94.tar.bz2
test/lfs-openat: open dfd with O_PATH
This triggers a bug present until at least Linux 5.6.11, causing EBADF, see https://lkml.org/lkml/2020/5/7/1287 Signed-off-by: Max Kellermann <mk@cm4all.com>
Diffstat (limited to 'test')
-rw-r--r--test/lfs-openat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lfs-openat.c b/test/lfs-openat.c
index a81543c..502743f 100644
--- a/test/lfs-openat.c
+++ b/test/lfs-openat.c
@@ -78,7 +78,7 @@ static int prepare_file(int dfd, const char* fn)
int main(int argc, char *argv[])
{
const char *fn = "io_uring_openat_test";
- int dfd = open("/tmp", O_RDONLY | O_DIRECTORY);
+ int dfd = open("/tmp", O_PATH);
struct io_uring ring;
int ret;