From d1e869462534232fe4c27f873336cf2f7382275e Mon Sep 17 00:00:00 2001
From: Stan Grishin <stangri@melmac.ca>
Date: Fri, 25 Oct 2024 17:11:51 +0000
Subject: [PATCH] adblock-fast: bugfix: fix allowed domains for dnsmasq.servers

Signed-off-by: Stan Grishin <stangri@melmac.ca>
---
 net/adblock-fast/Makefile                      | 2 +-
 net/adblock-fast/files/etc/init.d/adblock-fast | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/net/adblock-fast/Makefile b/net/adblock-fast/Makefile
index 3a31363497..59da8c4836 100644
--- a/net/adblock-fast/Makefile
+++ b/net/adblock-fast/Makefile
@@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=adblock-fast
 PKG_VERSION:=1.1.2
-PKG_RELEASE:=7
+PKG_RELEASE:=8
 PKG_MAINTAINER:=Stan Grishin <stangri@melmac.ca>
 PKG_LICENSE:=AGPL-3.0-or-later
 
diff --git a/net/adblock-fast/files/etc/init.d/adblock-fast b/net/adblock-fast/files/etc/init.d/adblock-fast
index cef52444d4..7e706071eb 100755
--- a/net/adblock-fast/files/etc/init.d/adblock-fast
+++ b/net/adblock-fast/files/etc/init.d/adblock-fast
@@ -1390,6 +1390,7 @@ $(sed '/^[[:space:]]*$/d' "$A_TMP")"
 	fi
 
 	if [ -n "$outputAllowFilter" ] && [ -n "$allowed_domain" ]; then
+		rm -f "$SED_TMP"; touch "$SED_TMP";
 		output 2 'Allowing domains '
 		json set message "$(get_text 'statusProcessing'): allowing domains"
 		for hf in ${allowed_domain}; do
-- 
2.30.2