]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
escape: fix exit code 470/head
authorMichael Marineau <michael.marineau@coreos.com>
Thu, 2 Jul 2015 06:46:42 +0000 (23:46 -0700)
committerMichael 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

index 9ccb015538e2b0d5d8e59fe2fa2bebd81d84c3a0..341453398d8cfcd42372c512b8639ec29144eba7 100644 (file)
@@ -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;
 }