bin/88119: [patch] partial matching for ifconfig
Brooks Davis
brooks at one-eyed-alien.net
Sun Oct 30 09:20:23 PST 2005
The following reply was made to PR bin/88119; it has been noted by GNATS.
From: Brooks Davis <brooks at one-eyed-alien.net>
To: bw at desync.com
Cc: Brooks Davis <brooks at one-eyed-alien.net>, freebsd-gnats-submit at freebsd.org
Subject: Re: bin/88119: [patch] partial matching for ifconfig
Date: Sun, 30 Oct 2005 09:18:22 -0800
On Fri, Oct 28, 2005 at 07:26:58PM -0400, bw at desync.com wrote:
> On Fri, Oct 28, 2005 at 03:32:02PM -0700, Brooks Davis wrote:
> > Thinking about it more I find this to be a significant POLA violation.
> > It means you can no longer reliably test for interface existence with:
> >
> > if ifconfig $ifn > /dev/null 2>&1; then
> > ...
>
> True, fixed.
I dislike this 'fix'. If the partial matching is going to be generally
useful, ifconfig needs to have a valid return status when it's run.
I'm unwilling to commit this feature without it being activated by a flag.
-- Brooks
More information about the freebsd-bugs
mailing list