aboutsummaryrefslogtreecommitdiff
path: root/selinux/setfiles.c
diff options
context:
space:
mode:
Diffstat (limited to 'selinux/setfiles.c')
-rw-r--r--selinux/setfiles.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/selinux/setfiles.c b/selinux/setfiles.c
index 0f7996fa6..5ae482e65 100644
--- a/selinux/setfiles.c
+++ b/selinux/setfiles.c
@@ -595,7 +595,7 @@ int setfiles_main(int argc, char **argv)
595 if (argc == 1) 595 if (argc == 1)
596 bb_show_usage(); 596 bb_show_usage();
597 if (stat(argv[optind], &sb) < 0) { 597 if (stat(argv[optind], &sb) < 0) {
598 bb_perror_msg_and_die("%s", argv[optind]); 598 bb_simple_perror_msg_and_die(argv[optind]);
599 } 599 }
600 if (!S_ISREG(sb.st_mode)) { 600 if (!S_ISREG(sb.st_mode)) {
601 bb_error_msg_and_die("spec file %s is not a regular file", argv[optind]); 601 bb_error_msg_and_die("spec file %s is not a regular file", argv[optind]);
@@ -603,7 +603,7 @@ int setfiles_main(int argc, char **argv)
603 /* Load the file contexts configuration and check it. */ 603 /* Load the file contexts configuration and check it. */
604 rc = matchpathcon_init(argv[optind]); 604 rc = matchpathcon_init(argv[optind]);
605 if (rc < 0) { 605 if (rc < 0) {
606 bb_perror_msg_and_die("%s", argv[optind]); 606 bb_simple_perror_msg_and_die(argv[optind]);
607 } 607 }
608 608
609 optind++; 609 optind++;