aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/services/dnsmasq
diff options
context:
space:
mode:
authorKevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>2018-12-14 14:06:27 +0000
committerKevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>2018-12-14 17:51:42 +0000
commit9048b22e6770642454d3e27bce6c5877f2c17c03 (patch)
tree8825f82e29c973f1d9768137d528d77b8f33ad9c /package/network/services/dnsmasq
parenta969e96e47f8f893108fcffb31a4af7369a978dd (diff)
downloadupstream-9048b22e6770642454d3e27bce6c5877f2c17c03.tar.gz
upstream-9048b22e6770642454d3e27bce6c5877f2c17c03.tar.bz2
upstream-9048b22e6770642454d3e27bce6c5877f2c17c03.zip
dnsmasq: Fix dhcp-boot, dhcp-reply-delay and pxe-prompt regressions
The above options were incorrectly changed to required tags. Make them optional again. Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Diffstat (limited to 'package/network/services/dnsmasq')
-rw-r--r--package/network/services/dnsmasq/Makefile2
-rw-r--r--package/network/services/dnsmasq/patches/0014-option-dhcp-boot-dhcp-reply-delay-tag-fixes.patch40
2 files changed, 41 insertions, 1 deletions
diff --git a/package/network/services/dnsmasq/Makefile b/package/network/services/dnsmasq/Makefile
index 229d9eb4a0..fc067ebb0f 100644
--- a/package/network/services/dnsmasq/Makefile
+++ b/package/network/services/dnsmasq/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=dnsmasq
PKG_VERSION:=2.80
-PKG_RELEASE:=4
+PKG_RELEASE:=5
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=http://thekelleys.org.uk/dnsmasq
diff --git a/package/network/services/dnsmasq/patches/0014-option-dhcp-boot-dhcp-reply-delay-tag-fixes.patch b/package/network/services/dnsmasq/patches/0014-option-dhcp-boot-dhcp-reply-delay-tag-fixes.patch
new file mode 100644
index 0000000000..7712a32827
--- /dev/null
+++ b/package/network/services/dnsmasq/patches/0014-option-dhcp-boot-dhcp-reply-delay-tag-fixes.patch
@@ -0,0 +1,40 @@
+From 668b45c29c38d440c8fce4bc994c56910adc3919 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20Men=C5=A1=C3=ADk?= <pemensik@redhat.com>
+Date: Fri, 14 Dec 2018 17:03:08 +0100
+Subject: [PATCH] Fix required tags in few places
+
+Some locations were incorrectly changed to require always tags, else
+dnsmasq will not start. Fix dhcp-boot, dhcp-reply-delay and pxe-prompt.
+---
+ src/option.c | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+--- a/src/option.c
++++ b/src/option.c
+@@ -3434,7 +3434,7 @@ static int one_opt(int option, char *arg
+ {
+ struct dhcp_netid *id = dhcp_tags(&arg);
+
+- if (!id)
++ if (!arg)
+ {
+ ret_err(gen_err);
+ }
+@@ -3485,7 +3485,7 @@ static int one_opt(int option, char *arg
+ {
+ struct dhcp_netid *id = dhcp_tags(&arg);
+
+- if (!id)
++ if (!arg)
+ {
+ ret_err(gen_err);
+ }
+@@ -3515,7 +3515,7 @@ static int one_opt(int option, char *arg
+ new->opt = 10; /* PXE_MENU_PROMPT */
+ new->netid = dhcp_tags(&arg);
+
+- if (!new->netid)
++ if (!arg)
+ {
+ dhcp_opt_free(new);
+ ret_err(gen_err);