From: Guus Sliepen Date: Sun, 15 Jun 2014 10:19:10 +0000 (+0200) Subject: Unconditionally return non-zero exit code when "tinc del" does not find the requested... X-Git-Tag: release-1.1pre11~108 X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=commitdiff_plain;h=31c68993989fbca3c88df1449ea2077baafce481 Unconditionally return non-zero exit code when "tinc del" does not find the requested variable. --- diff --git a/src/tincctl.c b/src/tincctl.c index 73b998a5..9fc749bc 100644 --- a/src/tincctl.c +++ b/src/tincctl.c @@ -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