mirror of
https://github.com/systemd/systemd.git
synced 2026-08-13 17:08:14 +00:00
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:
committed by
Luca Boccassi
parent
79f8447f5f
commit
b34ff170d1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user