Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 01 Feb 2005 18:29:00 -0500
From:      David Scheidt <dmschei@attglobal.net>
To:        hackers@freebsd.org
Subject:   /etc/hosts lines starting with white space are ignored
Message-ID:  <420010BC.9080400@attglobal.net>

next in thread | raw e-mail | index | archive | help
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?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?420010BC.9080400>