820c6469439dfd9463a481b95634c6f161a9f762
[openwrt/openwrt.git] / package / network / services / dnsmasq / patches / 0036-More-etc-hosts-linecount-fixing.patch
1 From 065e5bb0b1c5b9b4ce124ecf35cb2c51feda70e6 Mon Sep 17 00:00:00 2001
2 From: Simon Kelley <simon@thekelleys.org.uk>
3 Date: Fri, 1 Mar 2019 14:38:51 +0000
4 Subject: [PATCH 36/57] More /etc/hosts linecount fixing.
5
6 Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
7 ---
8 src/cache.c | 1 +
9 1 file changed, 1 insertion(+)
10
11 --- a/src/cache.c
12 +++ b/src/cache.c
13 @@ -1126,6 +1126,7 @@ int read_hostsfile(char *filename, unsig
14 my_syslog(LOG_ERR, _("bad address at %s line %d"), filename, lineno);
15 while (atnl == 0)
16 atnl = gettok(f, token);
17 + lineno += atnl;
18 continue;
19 }
20