aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/services/dnsmasq/patches
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2014-08-28 06:27:53 +0000
committerJohn Crispin <blogic@openwrt.org>2014-08-28 06:27:53 +0000
commit2abc3f33e5b3e43e526a787f05ecd400af8122e0 (patch)
tree5ac0de2ad8170df83c2f96b47b91f817edec83d3 /package/network/services/dnsmasq/patches
parent299986df607358ccfb1facc00556e6a17c74a6bc (diff)
downloadmaster-187ad058-2abc3f33e5b3e43e526a787f05ecd400af8122e0.tar.gz
master-187ad058-2abc3f33e5b3e43e526a787f05ecd400af8122e0.tar.bz2
master-187ad058-2abc3f33e5b3e43e526a787f05ecd400af8122e0.zip
dnsmasq: Fix hosts file format when MAC address is not specified
An entry like this in /etc/config/dhcp: config 'host' option 'name' 'pc2' option 'ip' '192.168.100.56' option 'dns' '1' results in a /tmp/hosts/dhcp entry that looks like this: 192.168.100.56 .lan Obviously it should say "pc2.lan". This happens because $name is set to "" in order to support the MAC-less syntax: "--dhcp-host=lap,192.168.0.199". Fix this by reordering the operations. Also, refuse to add a DNS entry if the hostname or IP is missing. Fixes #17683 Reported-by: Kostas Papadopoulos <kpapad75@travelguide.gr> Signed-off-by: Kevin Cernekee <cernekee@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42319 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network/services/dnsmasq/patches')
0 files changed, 0 insertions, 0 deletions