From: Alan T. DeKok Date: Mon, 14 Dec 2020 21:27:57 +0000 (-0500) Subject: don't confuse the poor reader X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e0a20753ebe4cff37a4fd8129d47682e20aabac;p=thirdparty%2Ffreeradius-server.git don't confuse the poor reader if there's no output file, the output goes to STDOUT, not to the input file. Fixing this message means that the poor reader won't wonder WTF is going on with the input and output being the same. --- diff --git a/src/bin/unit_test_module.c b/src/bin/unit_test_module.c index e39ac6559de..4b5838f1093 100644 --- a/src/bin/unit_test_module.c +++ b/src/bin/unit_test_module.c @@ -999,7 +999,7 @@ int main(int argc, char *argv[]) if (!fr_pair_validate(failed, &filter_vps, &request->reply_pairs)) { fr_pair_validate_debug(request, failed); fr_perror("Output file %s does not match attributes in filter %s", - output_file ? output_file : input_file, filter_file); + output_file ? output_file : "-", filter_file); ret = EXIT_FAILURE; goto cleanup; }