diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2007-05-26 01:02:54 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2007-05-26 01:02:54 +0000 |
commit | e1ab843b765f48a5ea1a0f5b9e290238cdd12d6a (patch) | |
tree | f416809148799a8a6dc3a81dec37798237077f45 /sbin/ifconfig/ifconfig.c | |
parent | c413206bf89a6cce9527a4d2de33ef258c0f02d3 (diff) |
When the SIOCGIFMEDIA ioctl fails, don't report a problem with
'SGIOCGIFMEDIA'.
Noticed by Stuart Henderson.
Diffstat (limited to 'sbin/ifconfig/ifconfig.c')
-rw-r--r-- | sbin/ifconfig/ifconfig.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c index f5c99638eb0..38e8b11ec2b 100644 --- a/sbin/ifconfig/ifconfig.c +++ b/sbin/ifconfig/ifconfig.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ifconfig.c,v 1.177 2006/11/15 01:53:00 itojun Exp $ */ +/* $OpenBSD: ifconfig.c,v 1.178 2007/05/26 01:02:53 krw Exp $ */ /* $NetBSD: ifconfig.c,v 1.40 1997/10/01 02:19:43 enami Exp $ */ /* @@ -1794,7 +1794,7 @@ init_current_media(void) * that there are more, so we can ignore it. */ if (errno != E2BIG) - err(1, "SGIOCGIFMEDIA"); + err(1, "SIOCGIFMEDIA"); } media_current = ifmr.ifm_current; |