From 444fd91a2138d82dc41be57fdc3ed185f6759ab0 Mon Sep 17 00:00:00 2001 From: Kirill Isakov Date: Sat, 10 Jul 2021 17:13:34 +0600 Subject: [PATCH] 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. --- src/tincctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) { -- 2.20.1