valeriyvdovin / rpms / systemd

Forked from rpms/systemd 4 years ago
Clone

Blame SOURCES/0229-escape-fix-exit-code.patch

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