]> tinc-vpn.org Git - tinc/blobdiff - src/tincctl.c
Add a new --syslog option for tincd.
[tinc] / src / tincctl.c
index 7a3195e58f5d3c8e998fb11896b54a4c0dd54d64..9fc749bcfc9fb76934f9f47303ec3336976269fa 100644 (file)
@@ -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