Merge pull request #23943 from poettering/tmpfiles-errno-fix

two errno variable fixes
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2022-07-08 14:50:18 +02:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -930,7 +930,7 @@ static int mount_private_dev(MountEntry *m) {
r = label_fix_container(dev, "/dev", 0);
if (r < 0) {
log_debug_errno(errno, "Failed to fix label of '%s' as /dev: %m", dev);
log_debug_errno(r, "Failed to fix label of '%s' as /dev: %m", dev);
goto fail;
}
+1 -1
View 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;
}