mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-02-15 00:33:46 -05:00
hosts file fixup for MacOSX
git-svn-id: file:///svn/unbound/trunk@1083 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
556b4efb8a
commit
e60174a000
3 changed files with 5 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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
BIN
testdata/hostsfileosx.tpkg
vendored
Normal file
Binary file not shown.
Loading…
Reference in a new issue