← Commit list

12eda0ab9

Bernhard Reutner-Fischer
Bernhard Reutner-Fischer
2007-03-09
FAILED Duration: 11s

Subject

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

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

selinux/matchpathcon.c+2 -2
@@ -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;