Blob Blame History Raw
From 1439e71dcead7085e1a4eeb2d3db2ca321f9342b Mon Sep 17 00:00:00 2001
From: Michael Marineau <michael.marineau@coreos.com>
Date: Wed, 1 Jul 2015 23:46:42 -0700
Subject: [PATCH] escape: fix exit code

r == 0 indicates success, not failure

(cherry picked from commit ff9c82cc399c37dd3d3fad4ec116b33c9efe70ea)
---
 src/escape/escape.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/escape/escape.c b/src/escape/escape.c
index f2a0721861..766a2c2c61 100644
--- a/src/escape/escape.c
+++ b/src/escape/escape.c
@@ -232,5 +232,5 @@ int main(int argc, char *argv[]) {
         fputc('\n', stdout);
 
 finish:
-        return r <= 0 ? EXIT_FAILURE : EXIT_SUCCESS;
+        return r < 0 ? EXIT_FAILURE : EXIT_SUCCESS;
 }