X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;ds=inline;f=src%2Ftincctl.c;h=9fc749bcfc9fb76934f9f47303ec3336976269fa;hb=31c68993989fbca3c88df1449ea2077baafce481;hp=7a3195e58f5d3c8e998fb11896b54a4c0dd54d64;hpb=666718998eaa044f6f25fe99810a78dca8471393;p=tinc diff --git a/src/tincctl.c b/src/tincctl.c index 7a3195e5..9fc749bc 100644 --- a/src/tincctl.c +++ b/src/tincctl.c @@ -1613,7 +1613,7 @@ static int cmd_config(int argc, char *argv[]) { if(action < -1) { if(!found) fprintf(stderr, "No matching configuration variables found.\n"); - return 0; + return 1; } // Make sure we wrote everything... @@ -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