openwrt/package
John Crispin 5046209312 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>

SVN-Revision: 42319
2014-08-28 06:27:53 +00:00
..
base-files package/*: remove useless explicit set of function returncode 2014-08-25 06:35:50 +00:00
boot uboot-kirkwood: bump to 2014.07 2014-08-08 15:55:03 +00:00
devel valgrind: fix build failure on uml 2014-08-20 13:58:23 +00:00
firmware kernel: add staging r8188eu module (3.13) 2014-04-30 21:53:29 +00:00
kernel kernel: revert [40784] 2014-08-27 08:49:55 +00:00
libs uclient: update to latest version, fixes HTTP keepalive issues 2014-08-21 19:12:38 +00:00
network dnsmasq: Fix hosts file format when MAC address is not specified 2014-08-28 06:27:53 +00:00
system package/*: remove useless explicit set of function returncode 2014-08-25 06:35:50 +00:00
utils usbmode: update to latest git 2014-08-26 08:39:55 +00:00
Makefile build: consider sub-directories when deploying packages to image with CONFIG_PER_FEED_REPO (#17430) 2014-08-07 15:35:12 +00:00