[packages/iptables] fgrep -> grep -F

arekm arekm at pld-linux.org
Thu Oct 2 09:33:43 CEST 2025


commit 16853b33b743efec07d1416ae4d207522be95715
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu Oct 2 09:33:36 2025 +0200

    fgrep -> grep -F

 ip6tables.init | 2 +-
 iptables.init  | 2 +-
 iptables.spec  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/iptables.spec b/iptables.spec
index 9f3d05c..85930d2 100644
--- a/iptables.spec
+++ b/iptables.spec
@@ -36,7 +36,7 @@ Summary(uk.UTF-8):	Утиліти для керування пакетними 
 Summary(zh_CN.UTF-8):	Linux内核包过滤管理工具
 Name:		iptables%{?with_vserver:-vserver}
 Version:	1.8.11
-Release:	1
+Release:	2
 License:	GPL v2
 Group:		Networking/Admin
 Source0:	https://netfilter.org/projects/iptables/files/%{orgname}-%{version}.tar.xz
diff --git a/ip6tables.init b/ip6tables.init
index c181a18..46819c2 100644
--- a/ip6tables.init
+++ b/ip6tables.init
@@ -52,7 +52,7 @@ if [ "$1" = "--quiet" ]; then
 fi
 
 iftable() {
-	if fgrep -qsx $1 /proc/net/ip6_tables_names; then
+	if grep -Fqsx $1 /proc/net/ip6_tables_names; then
 		ip6tables -t "$@"
 	fi
 }
diff --git a/iptables.init b/iptables.init
index 68f3c97..ff8cdb7 100644
--- a/iptables.init
+++ b/iptables.init
@@ -52,7 +52,7 @@ if [ "$1" = "--quiet" ]; then
 fi
 
 iftable() {
-	if fgrep -qsx $1 /proc/net/ip_tables_names; then
+	if grep -Fqsx $1 /proc/net/ip_tables_names; then
 		iptables -t "$@"
 	fi
 }
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/iptables.git/commitdiff/16853b33b743efec07d1416ae4d207522be95715



More information about the pld-cvs-commit mailing list