hosts file fixup for MacOSX

git-svn-id: file:///svn/unbound/trunk@1083 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2008-05-16 11:35:00 +00:00
parent 556b4efb8a
commit e60174a000
3 changed files with 5 additions and 0 deletions

View file

@ -1,3 +1,6 @@
16 May 2008: Wouter
- fixup for MacOSX hosts file reading (reported by John Dickinson).
14 May 2008: Wouter
- accepted patch from Ondrej Sury for library version libtool option.
- configure --disable-rpath fixes up libtool for rpath trouble.

View file

@ -889,6 +889,8 @@ ub_ctx_hosts(struct ub_ctx* ctx, char* fname)
parse++;
if(*parse == '\n' || *parse == 0)
continue;
if(*parse == '%')
continue; /* ignore macOSX fe80::1%lo0 localhost */
if(*parse != ' ' && *parse != '\t') {
/* must have whitespace after address */
fclose(in);

BIN
testdata/hostsfileosx.tpkg vendored Normal file

Binary file not shown.