aboutsummaryrefslogtreecommitdiff
path: root/selinux/setfiles.c
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2017-09-27 10:08:12 +0100
committerRon Yorston <rmy@pobox.com>2017-09-27 10:11:19 +0100
commitd9383e984da8de72e61e5094a3cf6404c5707ddc (patch)
treedd42825854fc42aea40d4f7a95548d53721d1733 /selinux/setfiles.c
parent166b3e4e82799f87d3b002c7177891111eff079e (diff)
parent0c4dbd481aedb5d22c1048e7f7eb547a3b5e50a5 (diff)
downloadbusybox-w32-d9383e984da8de72e61e5094a3cf6404c5707ddc.tar.gz
busybox-w32-d9383e984da8de72e61e5094a3cf6404c5707ddc.tar.bz2
busybox-w32-d9383e984da8de72e61e5094a3cf6404c5707ddc.zip
Merge branch 'busybox' into merge
Diffstat (limited to 'selinux/setfiles.c')
-rw-r--r--selinux/setfiles.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/selinux/setfiles.c b/selinux/setfiles.c
index 8da47d274..740eaf8fb 100644
--- a/selinux/setfiles.c
+++ b/selinux/setfiles.c
@@ -613,19 +613,21 @@ int setfiles_main(int argc UNUSED_PARAM, char **argv)
613 /* Option order must match OPT_x definitions! */ 613 /* Option order must match OPT_x definitions! */
614 if (applet_name[0] == 'r') { /* restorecon */ 614 if (applet_name[0] == 'r') { /* restorecon */
615 flags = getopt32(argv, "^" 615 flags = getopt32(argv, "^"
616 "de:*f:ilnpqrsvo:FWR", 616 "de:*f:ilnpqrsvo:FWR"
617 "\0" "vv:v--p:p--v:v--q:q--v"; 617 "\0"
618 "vv:v--p:p--v:v--q:q--v",
618 &exclude_dir, &input_filename, &out_filename, 619 &exclude_dir, &input_filename, &out_filename,
619 &verbose 620 &verbose
620 ); 621 );
621 } else { /* setfiles */ 622 } else { /* setfiles */
622 flags = getopt32(argv, "^" 623 flags = getopt32(argv, "^"
623 "de:*f:ilnpqr:svo:FW" 624 "de:*f:ilnpqr:svo:FW"
624 IF_FEATURE_SETFILES_CHECK_OPTION("c:"), 625 IF_FEATURE_SETFILES_CHECK_OPTION("c:")
625 "\0" "vv:v--p:p--v:v--q:q--v"; 626 "\0"
627 "vv:v--p:p--v:v--q:q--v",
626 &exclude_dir, &input_filename, &rootpath, &out_filename, 628 &exclude_dir, &input_filename, &rootpath, &out_filename,
627 IF_FEATURE_SETFILES_CHECK_OPTION(&policyfile,) 629 IF_FEATURE_SETFILES_CHECK_OPTION(&policyfile,)
628 &verbose 630 &verbose
629 ); 631 );
630 } 632 }
631 argv += optind; 633 argv += optind;