From owner-freebsd-current@FreeBSD.ORG Sat Aug 30 07:51:43 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F378116A4BF for ; Sat, 30 Aug 2003 07:51:42 -0700 (PDT) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2FFF343FB1 for ; Sat, 30 Aug 2003 07:51:42 -0700 (PDT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.12.9/8.12.9) with ESMTP id h7UEp9rO058350; Sat, 30 Aug 2003 10:51:09 -0400 (EDT) (envelope-from robert@fledge.watson.org) Received: from localhost (robert@localhost)h7UEp9PN058345; Sat, 30 Aug 2003 10:51:09 -0400 (EDT) Date: Sat, 30 Aug 2003 10:51:09 -0400 (EDT) From: Robert Watson X-Sender: robert@fledge.watson.org To: Bryan Liesner In-Reply-To: <20030829223808.C13130@gravy.homeunix.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: "Kenneth D. Merry" cc: current@freebsd.org Subject: Re: ifconfig -a blows up if /etc/mac.conf isn't installed X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Aug 2003 14:51:43 -0000 On Fri, 29 Aug 2003, Bryan Liesner wrote: > On Fri, 29 Aug 2003, Kenneth D. Merry wrote: > > > Memory fault (core dumped) > > Same here. I took a look, and found that line 62 of > /usr/src/sbin/ifconfig/ifmac.c returns ENOENT, but the docs say this > should return a -1. So this code looks correct. Ken, Bryan, Thanks -- I've committed a variation on this patch which returns (-1) but also sets errno to ENOENT. You can pull down the results in mac.c#1.7. Sorry about that! Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Network Associates Laboratories