From owner-freebsd-bugs@FreeBSD.ORG Mon Jul 7 10:50:04 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8A35B37B401 for ; Mon, 7 Jul 2003 10:50:04 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 30F1743FAF for ; Mon, 7 Jul 2003 10:50:04 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h67Ho3Up030738 for ; Mon, 7 Jul 2003 10:50:03 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h67Ho39G030737; Mon, 7 Jul 2003 10:50:03 -0700 (PDT) Date: Mon, 7 Jul 2003 10:50:03 -0700 (PDT) Message-Id: <200307071750.h67Ho39G030737@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Dmitry Morozovsky Subject: Re: bin/54151 patch correction X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Dmitry Morozovsky List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2003 17:50:04 -0000 The following reply was made to PR bin/54151; it has been noted by GNATS. From: Dmitry Morozovsky To: freebsd-gnats-submit@freebsd.org Cc: Subject: Re: bin/54151 patch correction Date: Mon, 7 Jul 2003 21:40:33 +0400 (MSD) From discussion at -net@: DL> The first patch looks ok except for the text of the error message at DL> source line 157. Well, it's a piece of old junk: firstly, I used strdup(), and then realized it isn't necessary for argv. So, these lines possibly should look simply like @@ -151,6 +154,11 @@ case 'f' : SETFUNC(F_FILESET); break; + case 'i': + rifname = optarg; + if (checkifname(rifname) == 0) + errx(1, "no such interface: %s", rifname); + break; case '?': default: usage();