projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ebdb1e
)
escape: fix exit code
author
Michael Marineau
<michael.marineau@coreos.com>
Thu, 2 Jul 2015 06:46:42 +0000
(23:46 -0700)
committer
Michael Marineau
<michael.marineau@coreos.com>
Thu, 2 Jul 2015 06:46:42 +0000
(23:46 -0700)
r == 0 indicates success, not failure
src/escape/escape.c
patch
|
blob
|
history
diff --git
a/src/escape/escape.c
b/src/escape/escape.c
index 9ccb015538e2b0d5d8e59fe2fa2bebd81d84c3a0..341453398d8cfcd42372c512b8639ec29144eba7 100644
(file)
--- a/
src/escape/escape.c
+++ b/
src/escape/escape.c
@@
-236,5
+236,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;
}