From: Zygo Blaxell Date: Mon, 20 Jan 2025 02:11:17 +0000 (-0500) Subject: openat2: log a warning when we fall back to openat X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=874832dc58d7e6434614e8e0cbc461bbc8371072;p=bees 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 --- diff --git a/src/bees-roots.cc b/src/bees-roots.cc index 76a3357e..f7857b6a 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);