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