From owner-freebsd-hackers@FreeBSD.ORG Tue Feb 1 23:29:18 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6C6EA16A4CE for ; Tue, 1 Feb 2005 23:29:18 +0000 (GMT) Received: from rockridge.uits.indiana.edu (rockridge.uits.indiana.edu [129.79.1.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id ED55843D58 for ; Tue, 1 Feb 2005 23:29:17 +0000 (GMT) (envelope-from dmschei@attglobal.net) Received: from mail-relay.iu.edu (fontz.uits.indiana.edu [129.79.1.76]) j11NTFHd020869 for ; Tue, 1 Feb 2005 18:29:15 -0500 (EST) Received: from [149.161.16.13] (viper-013-client.iusb.edu [149.161.16.13]) (authenticated bits=0)j11NTFxX007080 for ; Tue, 1 Feb 2005 18:29:15 -0500 (EST) Message-ID: <420010BC.9080400@attglobal.net> Date: Tue, 01 Feb 2005 18:29:00 -0500 From: David Scheidt User-Agent: Mozilla Thunderbird 1.0 (X11/20050102) X-Accept-Language: en-us, en MIME-Version: 1.0 To: hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: /etc/hosts lines starting with white space are ignored X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Feb 2005 23:29:18 -0000 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?