ryantimwilson / rpms / systemd

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