/etc/hosts lines starting with white space are ignored

David Scheidt dmschei at attglobal.net
Tue Feb 1 15:29:18 PST 2005


If a line in /etc/hosts starts with a space or tab, it's not read. I'm 
not sure that's really a desirable behavior.  I'm quite sure it's not 
the vehavior I expected.

It looks like it's the usage of strpbrk() in the gethostent() function 
of src/lib/libc/net/gethostbyht.c.  It wouldn't  be hard to fix it to 
find hostnames on lines starting with " \t".  Should I submit a patch?


More information about the freebsd-hackers mailing list