Successfully getting an existing variable ("tinc get name") should
not result in an error exitcode (1) from the tinc command.
This changes the result of test/commandline.test from FAIL to PASS.
+ if(found) {
+ return 0;
+ } else {
fprintf(stderr, "No matching configuration variables found.\n");
fprintf(stderr, "No matching configuration variables found.\n");
}
// Make sure we wrote everything...
}
// Make sure we wrote everything...