mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-09-05 00:35:13 +00:00
Abort if bad option is passed to optimize option parsing
This commit is contained in:
@@ -359,6 +359,10 @@ static int process_args(int argc, char *argv[])
|
||||
dfaflags |= DFA_CONTROL_TREE_LEFT;
|
||||
} else if (strcmp(optarg, "expr-right-simplify") == 0) {
|
||||
dfaflags &= ~DFA_CONTROL_TREE_LEFT;
|
||||
} else {
|
||||
PERROR("%s: Invalid --Optimize option %s\n",
|
||||
progname, optarg);
|
||||
exit(1);
|
||||
}
|
||||
break;
|
||||
case 'm':
|
||||
|
Reference in New Issue
Block a user