svn commit: trunk/busybox/selinux

aldot at busybox.net aldot at busybox.net
Fri Mar 9 08:44:30 UTC 2007


Author: aldot
Date: 2007-03-09 00:44:30 -0800 (Fri, 09 Mar 2007)
New Revision: 18048

Log:
This small patch fixes a bug when exclusive options were given
to matchpathcon it should exit. (KaiGai Kohei)


Modified:
   trunk/busybox/selinux/matchpathcon.c


Changeset:
Modified: trunk/busybox/selinux/matchpathcon.c
===================================================================
--- trunk/busybox/selinux/matchpathcon.c	2007-03-09 08:36:22 UTC (rev 18047)
+++ trunk/busybox/selinux/matchpathcon.c	2007-03-09 08:44:30 UTC (rev 18048)
@@ -36,8 +36,8 @@
 	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;
 




More information about the busybox-cvs mailing list