projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a799283
)
core: minor error code handling fixes
author
Lennart Poettering
<lennart@poettering.net>
Tue, 21 Apr 2020 15:21:38 +0000
(17:21 +0200)
committer
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Sat, 30 May 2020 17:58:56 +0000
(19:58 +0200)
(cherry picked from commit
df3d3bdfe8a1c8c63a4ef1ead35d24788fefe05b
)
src/core/manager.c
patch
|
blob
|
history
diff --git
a/src/core/manager.c
b/src/core/manager.c
index 25afdbea0494729ecb3dd3d960466a9f74fdf1ce..e41528219f3d96cfbdc47006a0fa70760ea28f58 100644
(file)
--- a/
src/core/manager.c
+++ b/
src/core/manager.c
@@
-312,9
+312,9
@@
static int manager_check_ask_password(Manager *m) {
m->ask_password_inotify_fd, EPOLLIN,
manager_dispatch_ask_password_fd, m);
if (r < 0) {
- log_error_errno(
errno
, "Failed to add event source for /run/systemd/ask-password: %m");
+ log_error_errno(
r
, "Failed to add event source for /run/systemd/ask-password: %m");
manager_close_ask_password(m);
- return
-errno
;
+ return
r
;
}
(void) sd_event_source_set_description(m->ask_password_event_source, "manager-ask-password");