diff options
author | aldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2007-03-09 08:44:30 +0000 |
---|---|---|
committer | aldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2007-03-09 08:44:30 +0000 |
commit | 31926f188dd49cc0c2755c796f5eea6138c1625c (patch) | |
tree | 12337559f5334a9d3eba92ca889fc414bf9be0a8 | |
parent | ce17ffbafc2e79b4d94d3bf5683ae9d25bf908f0 (diff) | |
download | busybox-w32-31926f188dd49cc0c2755c796f5eea6138c1625c.tar.gz busybox-w32-31926f188dd49cc0c2755c796f5eea6138c1625c.tar.bz2 busybox-w32-31926f188dd49cc0c2755c796f5eea6138c1625c.zip |
This small patch fixes a bug when exclusive options were given
to matchpathcon it should exit. (KaiGai Kohei)
git-svn-id: svn://busybox.net/trunk/busybox@18048 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r-- | selinux/matchpathcon.c | 4 |
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) | |||
36 | unsigned opts; | 36 | unsigned opts; |
37 | char *fcontext, *prefix, *path; | 37 | char *fcontext, *prefix, *path; |
38 | 38 | ||
39 | opt_complementary = "-1:" /* at least one param reqd */ | 39 | opt_complementary = "-1" /* at least one param reqd */ |
40 | "f--p:p--f"; /* mutually exclusive */ | 40 | ":?:f--p:p--f"; /* mutually exclusive */ |
41 | opts = getopt32(argc, argv, "nNf:p:V", &fcontext, &prefix); | 41 | opts = getopt32(argc, argv, "nNf:p:V", &fcontext, &prefix); |
42 | argv += optind; | 42 | argv += optind; |
43 | 43 | ||