homework: fix a bad error propagation

This commit is contained in:
Lennart Poettering
2021-11-24 18:42:08 +01:00
parent a8be098403
commit b05f4495bd
+1 -1
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;
}