mirror of
https://github.com/sheumann/hush.git
synced 2024-09-12 00:55:11 +00:00
This small patch fixes a bug when exclusive options were given
to matchpathcon it should exit. (KaiGai Kohei)
This commit is contained in:
parent
67a32adbca
commit
12eda0ab97
@ -36,8 +36,8 @@ int matchpathcon_main(int argc, char **argv)
|
|||||||
unsigned opts;
|
unsigned opts;
|
||||||
char *fcontext, *prefix, *path;
|
char *fcontext, *prefix, *path;
|
||||||
|
|
||||||
opt_complementary = "-1:" /* at least one param reqd */
|
opt_complementary = "-1" /* at least one param reqd */
|
||||||
"f--p:p--f"; /* mutually exclusive */
|
":?:f--p:p--f"; /* mutually exclusive */
|
||||||
opts = getopt32(argc, argv, "nNf:p:V", &fcontext, &prefix);
|
opts = getopt32(argc, argv, "nNf:p:V", &fcontext, &prefix);
|
||||||
argv += optind;
|
argv += optind;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user