mirror of
https://github.com/systemd/systemd.git
synced 2024-10-30 14:55:37 +03:00
homework: fix a bad error propagation
This commit is contained in:
parent
a8be098403
commit
b05f4495bd
@ -585,7 +585,7 @@ static int write_identity_file(int root_fd, JsonVariant *v, uid_t uid) {
|
||||
}
|
||||
|
||||
if (fchown(fileno(identity_file), uid, uid) < 0) {
|
||||
log_error_errno(r, "Failed to change ownership of identity file: %m");
|
||||
r = log_error_errno(errno, "Failed to change ownership of identity file: %m");
|
||||
goto fail;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user