From: Lennart Poettering Date: Wed, 24 Nov 2021 17:36:00 +0000 (+0100) Subject: homework: fix a bad error propagation X-Git-Tag: v250-rc1~165^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b05f4495bd374dc28d39ea43ac7cec3f0fea4071;p=thirdparty%2Fsystemd.git homework: fix a bad error propagation --- diff --git a/src/home/homework.c b/src/home/homework.c index d2a24d32100..520b6b6f061 100644 --- a/src/home/homework.c +++ b/src/home/homework.c @@ -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; }