aboutsummaryrefslogtreecommitdiff
path: root/selinux/matchpathcon.c
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-03-09 08:44:30 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-03-09 08:44:30 +0000
commit12eda0ab9793e921426a5a110238819632965d72 (patch)
tree12337559f5334a9d3eba92ca889fc414bf9be0a8 /selinux/matchpathcon.c
parent67a32adbca0c8db05e0863a72fe0cc644005adee (diff)
downloadbusybox-12eda0ab9793e921426a5a110238819632965d72.tar.gz
This small patch fixes a bug when exclusive options were given
to matchpathcon it should exit. (KaiGai Kohei)
Diffstat (limited to 'selinux/matchpathcon.c')
-rw-r--r--selinux/matchpathcon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/selinux/matchpathcon.c b/selinux/matchpathcon.c
index c9ebbd795..83ea75d47 100644
--- a/selinux/matchpathcon.c
+++ b/selinux/matchpathcon.c
@@ -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;