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:
commit
4707ffa8a3
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user