From 31c68993989fbca3c88df1449ea2077baafce481 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Sun, 15 Jun 2014 12:19:10 +0200 Subject: [PATCH] Unconditionally return non-zero exit code when "tinc del" does not find the requested variable. --- src/tincctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tincctl.c b/src/tincctl.c index 73b998a..9fc749b 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 -- 2.25.1