From: Bernhard Reutner-Fischer Date: Fri, 9 Mar 2007 08:44:30 +0000 (-0000) Subject: This small patch fixes a bug when exclusive options were given X-Git-Tag: 1_5_1~95 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=12eda0ab9793e921426a5a110238819632965d72;p=oweals%2Fbusybox.git This small patch fixes a bug when exclusive options were given to matchpathcon it should exit. (KaiGai Kohei) --- 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;