checkpolicy: Fix checkmodule output message
PATCH 1/1 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 <[email protected]>
Signed-off-by Petr Lautrbach <[email protected]>
--- checkpolicy/checkmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
checkpolicy/checkmodule.c +1 -1
@@ -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);
Signature · 1 line
2.7.4
Stephen Smalley
AppliedQuoted 2 lines · Petr Lautrbach
Originally checkmodule stated that it wrote to the input file instead of to the output file.
Thanks, applied.
Quoted 21 lines
Reported-By Milos Malik <[email protected]>Signed-off-by Petr Lautrbach <[email protected]>--- checkpolicy/checkmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)checkpolicy/checkmodule.c +1
-1@@ -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);