]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
don't confuse the poor reader
authorAlan T. DeKok <aland@freeradius.org>
Mon, 14 Dec 2020 21:27:57 +0000 (16:27 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 14 Dec 2020 21:27:57 +0000 (16:27 -0500)
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.

src/bin/unit_test_module.c

index e39ac6559de3ea7a452b3c98f2bc663f938d6398..4b5838f10938efe3a7131cfe48ecc386a2a7026e 100644 (file)
@@ -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;
                }