ryantimwilson / rpms / systemd

Forked from rpms/systemd a month ago
Clone
803fb7
From 3eb63550d4222d9edd6ed2d257b8b03eff65fd24 Mon Sep 17 00:00:00 2001
803fb7
From: Michael Marineau <michael.marineau@coreos.com>
803fb7
Date: Wed, 1 Jul 2015 23:46:42 -0700
803fb7
Subject: [PATCH] escape: fix exit code
803fb7
803fb7
r == 0 indicates success, not failure
803fb7
803fb7
(cherry picked from commit ff9c82cc399c37dd3d3fad4ec116b33c9efe70ea)
803fb7
803fb7
Cherry-picked from: ff9c82c
803fb7
Resolves: #1222517
803fb7
---
803fb7
 src/escape/escape.c | 2 +-
803fb7
 1 file changed, 1 insertion(+), 1 deletion(-)
803fb7
803fb7
diff --git a/src/escape/escape.c b/src/escape/escape.c
803fb7
index f2a072186..766a2c2c6 100644
803fb7
--- a/src/escape/escape.c
803fb7
+++ b/src/escape/escape.c
803fb7
@@ -232,5 +232,5 @@ int main(int argc, char *argv[]) {
803fb7
         fputc('\n', stdout);
803fb7
 
803fb7
 finish:
803fb7
-        return r <= 0 ? EXIT_FAILURE : EXIT_SUCCESS;
803fb7
+        return r < 0 ? EXIT_FAILURE : EXIT_SUCCESS;
803fb7
 }