Bug 1295143

Summary: minor bug in dnsmasq.conf
Product: [Fedora] Fedora Reporter: Rolf Fokkens <rolf>
Component: dnsmasqAssignee: Pavel Šimerda (pavlix) <psimerda>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 23CC: itamar, laine, psimerda, thozza, veillard
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: dnsmasq-2.75-3.fc23 dnsmasq-2.75-3.fc22 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-01-28 18:22:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Rolf Fokkens 2016-01-02 20:16:37 UTC
Description of problem: 
the dnsmasq.conf file in the dnsmasq package contains a minor bug resulting from another minor bug in the spec file. The fix may explain it:

--- dnsmasq.spec.orig	2016-01-02 20:58:50.316465628 +0100
+++ dnsmasq.spec	2016-01-02 20:59:15.204174084 +0100
@@ -61,7 +61,7 @@
     sed -i 's|/var/lib/misc/dnsmasq.leases|/var/lib/dnsmasq/dnsmasq.leases|g' "$file"
 done
 
-sed -i "s:%%PREFIX%%:${EPREFIX}/usr:" dnsmasq.conf.example
+sed -i "s:%%%%PREFIX%%%%:${EPREFIX}/usr:" dnsmasq.conf.example
 
 #enable dbus
 sed -i 's|/\* #define HAVE_DBUS \*/|#define HAVE_DBUS|g' src/config.h

In short: % is escaped in RPM, so needs to be unescaped.

Version-Release number of selected component (if applicable):
dnsmasq-2.75-2.fc23.x86_64

How reproducible:
100%

Steps to Reproduce:
1. (re)install the package
2. take a look at /etc/dnsmasc.conf(.rpmne)
3. Note the line: #conf-file=%/usr/%/share/dnsmasq/trust-anchors.conf
4. This may not be considered a proper postfix path

Actual results:
Silly line in dnsmasq.conf:
#conf-file=%/usr%/share/dnsmasq/trust-anchors.conf

Expected results:
#conf-file=/usr/share/dnsmasq/trust-anchors.conf

Additional info:

Comment 1 Fedora Update System 2016-01-25 10:45:18 UTC
dnsmasq-2.75-3.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-848da8d1db

Comment 2 Fedora Update System 2016-01-25 10:45:20 UTC
dnsmasq-2.75-3.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2016-3b8e5e8781

Comment 3 Fedora Update System 2016-01-26 04:23:23 UTC
dnsmasq-2.75-3.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-3b8e5e8781

Comment 4 Fedora Update System 2016-01-26 04:28:30 UTC
dnsmasq-2.75-3.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-848da8d1db

Comment 5 Fedora Update System 2016-01-28 18:22:24 UTC
dnsmasq-2.75-3.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.

Comment 6 Fedora Update System 2016-02-10 23:19:22 UTC
dnsmasq-2.75-3.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.