Bug 1295143 - minor bug in dnsmasq.conf
Summary: minor bug in dnsmasq.conf
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: dnsmasq
Version: 23
Hardware: All
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Pavel Šimerda (pavlix)
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-01-02 20:16 UTC by Rolf Fokkens
Modified: 2016-02-10 23:19 UTC (History)
5 users (show)

Fixed In Version: dnsmasq-2.75-3.fc23 dnsmasq-2.75-3.fc22
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-01-28 18:22:29 UTC
Type: Bug


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.