Re: /etc/hosts lines starting with white space are ignored

2005-02-02 Thread Paul Armstrong
On Tue, Feb 01, 2005 at 05:21:19PM -0800, Romain Kang wrote: > > 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. > > The format of /etc/hosts has been thus for more than

Re: /etc/hosts lines starting with white space are ignored

2005-02-01 Thread Romain Kang
On Tue, Feb 01, 2005 at 06:29:00PM -0500, David Scheidt wrote: > 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. The format of /etc/hosts has been thus for more than 20 years

/etc/hosts lines starting with white space are ignored

2005-02-01 Thread David Scheidt
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 t