checkpolicy: Fix checkmodule output message

Originally checkmodule stated that it wrote to the input file instead of
to the output file.

Reported-By: Milos Malik <mmalik@redhat.com>
Signed-off-by: Petr Lautrbach <plautrba@redhat.com>
This commit is contained in:
Petr Lautrbach 2016-05-16 18:09:25 +02:00 committed by Stephen Smalley
parent 3fcda02a93
commit b5f9debdb2
1 changed files with 1 additions and 1 deletions

View File

@ -314,7 +314,7 @@ int main(int argc, char **argv)
if (!cil) {
printf("%s: writing binary representation (version %d) to %s\n",
argv[0], policyvers, file);
argv[0], policyvers, outfile);
if (write_binary_policy(&modpolicydb, outfp) != 0) {
fprintf(stderr, "%s: error writing %s\n", argv[0], outfile);