projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a52f80
)
src/tincctl.c: inverse exit code for 'tinc stop' on Windows
author
Kirill Isakov
<is-kir@ya.ru>
Sat, 10 Jul 2021 11:13:34 +0000
(17:13 +0600)
committer
Kirill Isakov
<is-kir@ya.ru>
Sat, 10 Jul 2021 15:18:14 +0000
(21:18 +0600)
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
patch
|
blob
|
history
diff --git
a/src/tincctl.c
b/src/tincctl.c
index
97b08cb
..
bfc16af
100644
(file)
--- 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()) {