diff --git a/bugifx-Fix-string-case-option-can-not-work.patch b/bugifx-Fix-string-case-option-can-not-work.patch new file mode 100644 index 0000000..46ba530 --- /dev/null +++ b/bugifx-Fix-string-case-option-can-not-work.patch @@ -0,0 +1,25 @@ +From 94f826661478949e7e4fff0726ffb99df1462eaf Mon Sep 17 00:00:00 2001 +From: wangxp006 +Date: Wed, 9 Mar 2022 16:00:38 +0800 +Subject: [PATCH] Fix string-case option can not work + +--- + extensions/ebt_string.c | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/extensions/ebt_string.c b/extensions/ebt_string.c +index 97fbe19..74a1bfa 100644 +--- a/extensions/ebt_string.c ++++ b/extensions/ebt_string.c +@@ -174,8 +174,6 @@ static int parse(int c, char **argv, int argc, const struct ebt_u_entry *entry, + break; + case STRING_ICASE: + ebt_check_option2(flags, OPT_STRING_ICASE); +- if (ebt_check_inverse2(optarg)) +- ebt_print_error2("Unexpected `!' after --string-icase"); + info->u.v1.flags |= XT_STRING_FLAG_IGNORECASE; + break; + case STRING: +-- +2.32.0 + diff --git a/ebtables.spec b/ebtables.spec index f6237fb..9d560c6 100644 --- a/ebtables.spec +++ b/ebtables.spec @@ -1,7 +1,7 @@ Name: ebtables Version: 2.0.11 -Release: 2 +Release: 3 Summary: A filtering tool for a Linux-based bridging firewall License: GPLv2+ URL: http://ebtables.sourceforge.net/ @@ -10,6 +10,8 @@ Source2: ebtables.systemd Source3: ebtables.service Source4: ebtables-config +Patch0001: bugifx-Fix-string-case-option-can-not-work.patch + BuildRequires: systemd libtool BuildRequires: chrpath @@ -27,7 +29,7 @@ Summary: help documents for ebtables Help package contains some doc and man help files for ebtables. %prep -%autosetup -n %{name}-%{version} +%autosetup -n %{name}-%{version} -p1 f=THANKS; iconv -f iso-8859-1 -t utf-8 $f -o $f.utf8 ; mv $f.utf8 $f %build @@ -102,6 +104,12 @@ fi %doc %{_mandir}/man8/ebtables-legacy.8* %changelog +* Tue Mar 09 2023 wangxiaopeng - 2.0.11-3 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:fix string-icase can not work + * Tue Sep 07 2021 gaihuiying - 2.0.11-2 - Type:bugfix - ID:NA