1
0
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:
Lennart Poettering 2021-11-24 18:36:00 +01:00
parent a8be098403
commit b05f4495bd

View File

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