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...
This commit is contained in:
Lennart Poettering
2026-03-26 18:11:30 +01:00
committed by Luca Boccassi
parent 79f8447f5f
commit b34ff170d1

View File

@@ -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);