This small patch fixes a bug when exclusive options were given
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 9 Mar 2007 08:44:30 +0000 (08:44 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 9 Mar 2007 08:44:30 +0000 (08:44 -0000)
to matchpathcon it should exit. (KaiGai Kohei)

selinux/matchpathcon.c

index c9ebbd7959a462c0220607415ee39d3a29efca99..83ea75d473cdc22983a8d2a501947e00a4fe10a8 100644 (file)
@@ -36,8 +36,8 @@ int matchpathcon_main(int argc, char **argv)
        unsigned opts;
        char *fcontext, *prefix, *path;
 
-       opt_complementary = "-1:" /* at least one param reqd */
-               "f--p:p--f"; /* mutually exclusive */
+       opt_complementary = "-1" /* at least one param reqd */
+               ":?:f--p:p--f"; /* mutually exclusive */
        opts = getopt32(argc, argv, "nNf:p:V", &fcontext, &prefix);
        argv += optind;