bin/54151 patch correction

Dmitry Morozovsky marck at
Mon Jul 7 10:50:04 PDT 2003

The following reply was made to PR bin/54151; it has been noted by GNATS.

From: Dmitry Morozovsky <marck at>
To: freebsd-gnats-submit at
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' :
 +               case 'i':
 +                       rifname = optarg;
 +                       if (checkifname(rifname) == 0)
 +                               errx(1, "no such interface: %s", rifname);
 +                       break;
                 case '?':

More information about the freebsd-bugs mailing list