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