]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tmpfiles: correct error variable to use 23943/head
authorLennart Poettering <lennart@poettering.net>
Fri, 8 Jul 2022 07:59:57 +0000 (09:59 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 8 Jul 2022 08:41:19 +0000 (10:41 +0200)
src/tmpfiles/tmpfiles.c

index 6aaf31867d90c63f6e05cffd869ce484249a079a..6c64f57d27bbdee716c0cd7155284091b1d3fd1c 100644 (file)
@@ -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;
                 }