projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e05c51c
)
homework: fix a bad error propagation
author
Lennart Poettering
<lennart@poettering.net>
Wed, 24 Nov 2021 17:36:00 +0000
(18:36 +0100)
committer
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Tue, 11 Jan 2022 17:55:41 +0000
(18:55 +0100)
(cherry picked from commit
b05f4495bd374dc28d39ea43ac7cec3f0fea4071
)
src/home/homework.c
patch
|
blob
|
history
diff --git
a/src/home/homework.c
b/src/home/homework.c
index b20b4bdf3ef76c14916dee7f1334d8bbab7a34b4..32a42c5d09a3f871297d39e888d6ae207589d40d 100644
(file)
--- a/
src/home/homework.c
+++ b/
src/home/homework.c
@@
-485,7
+485,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;
}