diff mbox

checkpolicy: Fix checkmodule output message

Message ID 1463414965-5639-1-git-send-email-plautrba@redhat.com (mailing list archive)
State Not Applicable
Headers show

Commit Message

Petr Lautrbach May 16, 2016, 4:09 p.m. UTC
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>
---
 checkpolicy/checkmodule.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Stephen Smalley May 16, 2016, 8:46 p.m. UTC | #1
On 05/16/2016 12:09 PM, Petr Lautrbach wrote:
> Originally checkmodule stated that it wrote to the input file instead of
> to the output file.

Thanks, applied.

> 
> Reported-By: Milos Malik <mmalik@redhat.com>
> Signed-off-by: Petr Lautrbach <plautrba@redhat.com>
> ---
>  checkpolicy/checkmodule.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/checkpolicy/checkmodule.c b/checkpolicy/checkmodule.c
> index 418f77b..53cc5a0 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);
>
diff mbox

Patch

diff --git a/checkpolicy/checkmodule.c b/checkpolicy/checkmodule.c
index 418f77b..53cc5a0 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);