summaryrefslogtreecommitdiffstats
path: root/src/tmpfiles/tmpfiles.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2022-07-08 09:59:57 +0200
committerLennart Poettering <lennart@poettering.net>2022-07-08 10:41:19 +0200
commit149e0ca6c77692b82a9e4602ca4ffb7108346379 (patch)
tree3279eb82faa29d894e95e27ebafdc213eedac02c /src/tmpfiles/tmpfiles.c
parentnamespace: fix propagated error number (diff)
downloadsystemd-149e0ca6c77692b82a9e4602ca4ffb7108346379.tar.xz
systemd-149e0ca6c77692b82a9e4602ca4ffb7108346379.zip
tmpfiles: correct error variable to use
Diffstat (limited to 'src/tmpfiles/tmpfiles.c')
-rw-r--r--src/tmpfiles/tmpfiles.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c
index 6aaf31867d..6c64f57d27 100644
--- a/src/tmpfiles/tmpfiles.c
+++ b/src/tmpfiles/tmpfiles.c
@@ -596,7 +596,7 @@ static int dir_cleanup(
continue;
if (r < 0) {
/* FUSE, NFS mounts, SELinux might return EACCES */
- r = log_full_errno(errno == EACCES ? LOG_DEBUG : LOG_ERR, errno,
+ r = log_full_errno(r == -EACCES ? LOG_DEBUG : LOG_ERR, r,
"statx(%s/%s) failed: %m", p, de->d_name);
continue;
}