From 409e9f1b38b4bfbc3ea86651550c81c7b089719a Mon Sep 17 00:00:00 2001 From: thorpej Date: Tue, 25 Jan 2000 02:16:57 +0000 Subject: [PATCH] Fix a logic buglet in status printing code. --- sbin/ifconfig/ifconfig.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c index 6f86e31f88e9..1bee1261b01b 100644 --- a/sbin/ifconfig/ifconfig.c +++ b/sbin/ifconfig/ifconfig.c @@ -1,4 +1,4 @@ -/* $NetBSD: ifconfig.c,v 1.65 2000/01/25 01:46:57 thorpej Exp $ */ +/* $NetBSD: ifconfig.c,v 1.66 2000/01/25 02:16:57 thorpej Exp $ */ /*- * Copyright (c) 1997, 1998, 2000 The NetBSD Foundation, Inc. @@ -80,7 +80,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 1993\n\ #if 0 static char sccsid[] = "@(#)ifconfig.c 8.2 (Berkeley) 2/16/94"; #else -__RCSID("$NetBSD: ifconfig.c,v 1.65 2000/01/25 01:46:57 thorpej Exp $"); +__RCSID("$NetBSD: ifconfig.c,v 1.66 2000/01/25 02:16:57 thorpej Exp $"); #endif #endif /* not lint */ @@ -1338,7 +1338,7 @@ status(ap, alen) for (ifms = ifm_status_descriptions; ifms->ifms_valid != 0; ifms++) { if (ifms->ifms_type != - IFM_TYPE(ifmr.ifm_current) && + IFM_TYPE(ifmr.ifm_current) || ifms->ifms_valid != ifm_status_valid_list[bitno]) continue;