Date: Fri, 20 Oct 2000 00:36:20 -0700 (PDT) From: sethk@osd.bsdi.com To: freebsd-gnats-submit@FreeBSD.org Subject: bin/22143: [PATCH] wicontrol(9) Message-ID: <20001020073620.D9ED737B4D7@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 22143
>Category: bin
>Synopsis: [PATCH] wicontrol(9)
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Fri Oct 20 00:40:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Seth Kingsley
>Release: 5.0-CURRENT
>Organization:
>Environment:
FreeBSD veritech.osd.bsdi.com 5.0-CURRENT FreeBSD 5.0-CURRENT #4:
Thu Oct 19 00:14:24 PDT 2000
root@veritech:/usr/src/sys/compile/VERITECH i386
>Description:
The wicontrol utility fails to detect that no interface has been
specified when using the -e option as it does for other options.
Pretty self-explanitory.
>How-To-Repeat:
wicontrol -e 1
>Fix:
===================================================================
RCS file: /ncvs/src/usr.sbin/wicontrol/wicontrol.c,v
retrieving revision 1.13
diff -u -r1.13 wicontrol.c
--- wicontrol.c 2000/09/21 00:25:07 1.13
+++ wicontrol.c 2000/10/20 06:58:14
@@ -208,6 +208,9 @@
{
struct wi_req wreq;
+ if (iface == NULL)
+ errx(1, "must specify interface name");
+
bzero((char *)&wreq, sizeof(wreq));
wreq.wi_type = code;
>Release-Note:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001020073620.D9ED737B4D7>
