1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-25 10:04:04 +03:00

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
commit 4707ffa8a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

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;
}

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;
}