projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ae1ec8
)
Fix exit code of "tinc get".
author
Sven-Haegar Koch
<haegar@sdinet.de>
Thu, 7 Aug 2014 21:01:05 +0000
(23:01 +0200)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Thu, 7 Aug 2014 21:01:48 +0000
(23:01 +0200)
Successfully getting an existing variable ("tinc get name") should
not result in an error exitcode (1) from the tinc command.
This changes the result of test/commandline.test from FAIL to PASS.
src/tincctl.c
patch
|
blob
|
history
diff --git
a/src/tincctl.c
b/src/tincctl.c
index
c0c8a25
..
2a2c488
100644
(file)
--- a/
src/tincctl.c
+++ b/
src/tincctl.c
@@
-1635,9
+1635,12
@@
static int cmd_config(int argc, char *argv[]) {
}
if(action < -1) {
- if(!found)
+ if(found) {
+ return 0;
+ } else {
fprintf(stderr, "No matching configuration variables found.\n");
- return 1;
+ return 1;
+ }
}
// Make sure we wrote everything...