Unconditionally return non-zero exit code when "tinc del" does not find the requested variable.
This commit is contained in:
parent
1ce0f76139
commit
31c6899398
1 changed files with 1 additions and 1 deletions
|
@ -1626,7 +1626,7 @@ static int cmd_config(int argc, char *argv[]) {
|
|||
if(action < 0 && !removed) {
|
||||
remove(tmpfile);
|
||||
fprintf(stderr, "No configuration variables deleted.\n");
|
||||
return *value != 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
// Replace the configuration file with the new one
|
||||
|
|
Loading…
Reference in a new issue