fix string-icase can not work

This commit is contained in:
wangxp006 2022-03-09 16:11:20 +08:00
parent d5db5a7aa8
commit a202b160cc
2 changed files with 35 additions and 2 deletions

View File

@ -0,0 +1,25 @@
From 94f826661478949e7e4fff0726ffb99df1462eaf Mon Sep 17 00:00:00 2001
From: wangxp006 <wangxp006@163.com>
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

View File

@ -1,7 +1,7 @@
Name: ebtables Name: ebtables
Version: 2.0.11 Version: 2.0.11
Release: 2 Release: 3
Summary: A filtering tool for a Linux-based bridging firewall Summary: A filtering tool for a Linux-based bridging firewall
License: GPLv2+ License: GPLv2+
URL: http://ebtables.sourceforge.net/ URL: http://ebtables.sourceforge.net/
@ -10,6 +10,8 @@ Source2: ebtables.systemd
Source3: ebtables.service Source3: ebtables.service
Source4: ebtables-config Source4: ebtables-config
Patch0001: bugifx-Fix-string-case-option-can-not-work.patch
BuildRequires: systemd libtool BuildRequires: systemd libtool
BuildRequires: chrpath BuildRequires: chrpath
@ -27,7 +29,7 @@ Summary: help documents for ebtables
Help package contains some doc and man help files for ebtables. Help package contains some doc and man help files for ebtables.
%prep %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 f=THANKS; iconv -f iso-8859-1 -t utf-8 $f -o $f.utf8 ; mv $f.utf8 $f
%build %build
@ -102,6 +104,12 @@ fi
%doc %{_mandir}/man8/ebtables-legacy.8* %doc %{_mandir}/man8/ebtables-legacy.8*
%changelog %changelog
* Tue Mar 09 2023 wangxiaopeng <wangxiaopeng7@huawei.com> - 2.0.11-3
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:fix string-icase can not work
* Tue Sep 07 2021 gaihuiying <gaihuiying1@huawei.com> - 2.0.11-2 * Tue Sep 07 2021 gaihuiying <gaihuiying1@huawei.com> - 2.0.11-2
- Type:bugfix - Type:bugfix
- ID:NA - ID:NA