daandemeyer / rpms / systemd

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