[systemd-commits] stable Branch 'v217-stable' - src/core
Michael Biebl
mbiebl at kemper.freedesktop.org
Thu Apr 16 06:14:57 PDT 2015
src/core/manager.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 6d025bafdb9a3317fac014bdf19acf09256a1531
Author: Michael Biebl <biebl at debian.org>
Date: Thu Apr 16 13:56:28 2015 +0200
manager: pass correct errno to strerror()
have_ask_password contains negative error values which have to be
negated when being passed to strerror().
diff --git a/src/core/manager.c b/src/core/manager.c
index 47e23ba..06ef376 100644
--- a/src/core/manager.c
+++ b/src/core/manager.c
@@ -241,7 +241,7 @@ static int manager_dispatch_ask_password_fd(sd_event_source *source,
if (m->have_ask_password < 0)
/* Log error but continue. Negative have_ask_password
* is treated as unknown status. */
- log_error("Failed to list /run/systemd/ask-password: %s", strerror(m->have_ask_password));
+ log_error("Failed to list /run/systemd/ask-password: %s", strerror(-m->have_ask_password));
return 0;
}
More information about the systemd-commits
mailing list