From b5f9debdb20e4aa1ddf940e7265237742cfca772 Mon Sep 17 00:00:00 2001 From: Petr Lautrbach Date: Mon, 16 May 2016 18:09:25 +0200 Subject: [PATCH] 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 Signed-off-by: Petr Lautrbach --- checkpolicy/checkmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checkpolicy/checkmodule.c b/checkpolicy/checkmodule.c index 418f77b7..53cc5a04 100644 --- a/checkpolicy/checkmodule.c +++ b/checkpolicy/checkmodule.c @@ -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);