From 38d946c0c60b9235c621d1f5f1a366b41cebfa5c Mon Sep 17 00:00:00 2001 From: Muhammad Falak R Wani Date: Wed, 10 Jun 2026 09:53:47 +0530 Subject: [PATCH] Fix dnsmasq config overwite by marking config as %config(noreplace) A package upgrade of dnsmasq overwrites the config with no backup regradless of modifications. Mark the config to preserve local modifications. Signed-off-by: Muhammad Falak R Wani --- SPECS/dnsmasq/dnsmasq.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/SPECS/dnsmasq/dnsmasq.spec b/SPECS/dnsmasq/dnsmasq.spec index da56e74dc5e..2a3943261f4 100644 --- a/SPECS/dnsmasq/dnsmasq.spec +++ b/SPECS/dnsmasq/dnsmasq.spec @@ -1,7 +1,7 @@ Summary: DNS proxy with integrated DHCP server Name: dnsmasq Version: 2.92 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv2 or GPLv3 Group: System Environment/Daemons URL: https://www.thekelleys.org.uk/dnsmasq/ @@ -67,11 +67,15 @@ EOF %exclude %{_libdir}/debug %{_sbindir}/* %{_mandir}/* -%{_sysconfdir}/* +%config(noreplace) %{_sysconfdir}/dnsmasq.conf +%dir %{_sysconfdir}/* %dir %{_sharedstatedir} %config /usr/share/dnsmasq/trust-anchors.conf %changelog +* Wed Jun 10 2026 Muhmammad Falak - 2.92-2 +- Tag dnsmasq.conf as a %config(noreplace) + * Fri May 22 2026 Kanishk Bansal - 2.92-1 - Upgrade to 2.92 - Patch CVE-2026-2291, CVE-2026-4890, CVE-2026-4891, CVE-2026-4892, CVE-2026-4893, CVE-2026-5172