From: Michael Marineau Date: Thu, 2 Jul 2015 06:46:42 +0000 (-0700) Subject: escape: fix exit code X-Git-Tag: v222~41^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ff9c82cc399c37dd3d3fad4ec116b33c9efe70ea;p=thirdparty%2Fsystemd.git escape: fix exit code r == 0 indicates success, not failure --- diff --git a/src/escape/escape.c b/src/escape/escape.c index 9ccb015538e..341453398d8 100644 --- 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; }