ifconfig -a blows up if /etc/mac.conf isn't installed

Robert Watson rwatson at freebsd.org
Sat Aug 30 07:51:43 PDT 2003


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 at fledge.watson.org      Network Associates Laboratories




More information about the freebsd-current mailing list