1ff636
From d67968957aece7a1d4da581d86ad719c9a7fad21 Mon Sep 17 00:00:00 2001
1ff636
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
1ff636
Date: Sat, 7 Mar 2015 14:23:38 -0500
1ff636
Subject: [PATCH] login: fix copy-pasto in error path
1ff636
1ff636
CID #1256583.
1ff636
1ff636
(cherry picked from commit dcee01125dde502bd8108c36ddf2026c1348865f)
1ff636
---
1ff636
 src/login/inhibit.c | 2 +-
1ff636
 1 file changed, 1 insertion(+), 1 deletion(-)
1ff636
1ff636
diff --git a/src/login/inhibit.c b/src/login/inhibit.c
Pablo Greco 48fc63
index 44bda34aff..88af23e35c 100644
1ff636
--- a/src/login/inhibit.c
1ff636
+++ b/src/login/inhibit.c
1ff636
@@ -260,7 +260,7 @@ int main(int argc, char *argv[]) {
1ff636
 
1ff636
                 fd = inhibit(bus, &error);
1ff636
                 if (fd < 0) {
1ff636
-                        log_error("Failed to inhibit: %s", bus_error_message(&error, -r));
1ff636
+                        log_error("Failed to inhibit: %s", bus_error_message(&error, fd));
1ff636
                         return EXIT_FAILURE;
1ff636
                 }
1ff636