mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-07 13:15:12 +02:00
condition: remove support for nonstandard inversion
This commit is contained in:
@@ -9,9 +9,10 @@
|
||||
|
||||
static void condition_help(void)
|
||||
{
|
||||
printf("condition match options:\n"
|
||||
"--condition [!] filename "
|
||||
"Match on boolean value stored in /proc file\n");
|
||||
printf(
|
||||
"condition match options:\n"
|
||||
"[!] --condition name Match on boolean value stored in procfs file\n"
|
||||
);
|
||||
}
|
||||
|
||||
static const struct option condition_opts[] = {
|
||||
@@ -29,8 +30,6 @@ static int condition_parse(int c, char **argv, int invert, unsigned int *flags,
|
||||
exit_error(PARAMETER_PROBLEM,
|
||||
"Can't specify multiple conditions");
|
||||
|
||||
check_inverse(optarg, &invert, &optind, 0);
|
||||
|
||||
if (strlen(optarg) < sizeof(info->name))
|
||||
strcpy(info->name, optarg);
|
||||
else
|
||||
|
Reference in New Issue
Block a user