From: Kirill Isakov Date: Sat, 10 Jul 2021 11:13:34 +0000 (+0600) Subject: src/tincctl.c: inverse exit code for 'tinc stop' on Windows X-Git-Url: https://tinc-vpn.org/git/browse?a=commitdiff_plain;h=444fd91a2138d82dc41be57fdc3ed185f6759ab0;p=tinc src/tincctl.c: inverse exit code for 'tinc stop' on Windows On Windows, the `tinc stop` command returned 1 on success and 0 on failure, which is the opposite of what happens everywhere else. --- diff --git a/src/tincctl.c b/src/tincctl.c index 97b08cb5..bfc16af4 100644 --- a/src/tincctl.c +++ b/src/tincctl.c @@ -1107,7 +1107,7 @@ static int cmd_stop(int argc, char *argv[]) { } #ifdef HAVE_MINGW - return remove_service(); + return remove_service() ? EXIT_SUCCESS : EXIT_FAILURE; #else if(!stop_tincd()) {