From 874832dc58d7e6434614e8e0cbc461bbc8371072 Mon Sep 17 00:00:00 2001 From: Zygo Blaxell Date: Sun, 19 Jan 2025 21:11:17 -0500 Subject: [PATCH] openat2: log a warning when we fall back to openat This should occur only once per run, but it's worth leaving a note that it has happened. Signed-off-by: Zygo Blaxell --- src/bees-roots.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bees-roots.cc b/src/bees-roots.cc index 76a3357..f7857b6 100644 --- a/src/bees-roots.cc +++ b/src/bees-roots.cc @@ -1774,6 +1774,7 @@ bees_openat(int const parent_fd, const char *const pathname, uint64_t const flag }; const auto rv = openat2(parent_fd, pathname, &how, sizeof(open_how)); if (rv == -1 && errno == ENOSYS) { + BEESLOGWARN("openat2 returns ENOSYS, falling back to openat"); can_openat2 = false; } else { return Fd(rv);