Skip to contentSkip to conversation

checkpolicy: Fix checkmodule output message

PATCH Applied Petr Lautrbach 2 participants 2 messages May 16, 2016 SELinux security module

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 checkpolicy: Fix checkmodule output message

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

---
 checkpolicy/checkmodule.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
checkpolicy/checkmodule.c +1 -1
index 418f77b..53cc5a0 100644
@@ -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
#1 lore raw
Quoted 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
---
 checkpolicy/checkmodule.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
checkpolicy/checkmodule.c +1 -1
index 418f77b..53cc5a0 100644
@@ -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);