Date: Sun, 30 Oct 2005 17:20:22 GMT From: Brooks Davis <brooks@one-eyed-alien.net> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/88119: [patch] partial matching for ifconfig Message-ID: <200510301720.j9UHKMl6058690@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/88119; it has been noted by GNATS. From: Brooks Davis <brooks@one-eyed-alien.net> To: bw@desync.com Cc: Brooks Davis <brooks@one-eyed-alien.net>, freebsd-gnats-submit@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@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200510301720.j9UHKMl6058690>