mirror of
https://github.com/Zygo/bees.git
synced 2025-05-17 21:35:45 +02:00
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 <bees@furryterror.org>
This commit is contained in:
parent
5fe89d85c3
commit
874832dc58
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user