summaryrefslogtreecommitdiffstats
path: root/src/core/manager.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-04-21 17:21:38 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-04-22 08:56:05 +0200
commitdf3d3bdfe8a1c8c63a4ef1ead35d24788fefe05b (patch)
tree0165a8013366495bde1590928893221cb87b03d5 /src/core/manager.c
parentMerge pull request #15520 from mrc0mmand/various-codebase-improvements (diff)
downloadsystemd-df3d3bdfe8a1c8c63a4ef1ead35d24788fefe05b.tar.xz
systemd-df3d3bdfe8a1c8c63a4ef1ead35d24788fefe05b.zip
core: minor error code handling fixes
Diffstat (limited to '')
-rw-r--r--src/core/manager.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/manager.c b/src/core/manager.c
index 955ed1e54b..7536a9ca84 100644
--- a/src/core/manager.c
+++ b/src/core/manager.c
@@ -313,9 +313,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");