From b34ff170d1e32f681dbf8b5d9a1a06092032836e Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 26 Mar 2026 18:11:30 +0100 Subject: [PATCH] tmpfile-util: don't log about lack of O_TMPFILE support It's a very common case (vfat...), and it's just too much noise. After all the whole function exists primarily to deal with O_TMPFILE not being availeble everywhere... --- src/basic/tmpfile-util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/basic/tmpfile-util.c b/src/basic/tmpfile-util.c index be7a930c44c..9c2dc33f065 100644 --- a/src/basic/tmpfile-util.c +++ b/src/basic/tmpfile-util.c @@ -294,7 +294,8 @@ int open_tmpfile_linkable_at(int dir_fd, const char *target, int flags, char **r return fd; } - log_debug_errno(fd, "Failed to use O_TMPFILE for %s: %m", target); + if (!ERRNO_IS_NEG_NOT_SUPPORTED(fd)) + log_debug_errno(fd, "Failed to use O_TMPFILE for %s: %m", target); _cleanup_free_ char *tmp = NULL; r = tempfn_random(target, NULL, &tmp);