diff options
Diffstat (limited to 'selinux/matchpathcon.c')
-rw-r--r-- | selinux/matchpathcon.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/selinux/matchpathcon.c b/selinux/matchpathcon.c index 3388d0857..e57120d3b 100644 --- a/selinux/matchpathcon.c +++ b/selinux/matchpathcon.c | |||
@@ -58,9 +58,13 @@ int matchpathcon_main(int argc UNUSED_PARAM, char **argv) | |||
58 | unsigned opts; | 58 | unsigned opts; |
59 | char *fcontext, *prefix, *path; | 59 | char *fcontext, *prefix, *path; |
60 | 60 | ||
61 | opt_complementary = "-1" /* at least one param reqd */ | 61 | opts = getopt32(argv, "^" |
62 | ":?:f--p:p--f"; /* mutually exclusive */ | 62 | "nNf:p:V" |
63 | opts = getopt32(argv, "nNf:p:V", &fcontext, &prefix); | 63 | "\0" |
64 | "-1" /* at least one param reqd */ | ||
65 | ":?:f--p:p--f" /* mutually exclusive */ | ||
66 | , &fcontext, &prefix | ||
67 | ); | ||
64 | argv += optind; | 68 | argv += optind; |
65 | 69 | ||
66 | if (opts & OPT_NOT_TRANS) { | 70 | if (opts & OPT_NOT_TRANS) { |