From owner-cvs-all@FreeBSD.ORG Thu Oct 4 09:45:42 2007 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 80CD916A419; Thu, 4 Oct 2007 09:45:42 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 5440D13C457; Thu, 4 Oct 2007 09:45:42 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id l949jgwB094472; Thu, 4 Oct 2007 09:45:42 GMT (envelope-from thompsa@repoman.freebsd.org) Received: (from thompsa@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id l949jg1W094471; Thu, 4 Oct 2007 09:45:42 GMT (envelope-from thompsa) Message-Id: <200710040945.l949jg1W094471@repoman.freebsd.org> From: Andrew Thompson Date: Thu, 4 Oct 2007 09:45:42 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sbin/ifconfig ifconfig.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Oct 2007 09:45:42 -0000 thompsa 2007-10-04 09:45:41 UTC FreeBSD src repository Modified files: sbin/ifconfig ifconfig.c Log: Fix the module name matching to the drivers present in the kernel. Previously it would return true on a partial match where it would think the edsc module was already present by having a positive match on 'ed'. This changes it so that it compares the full string including the nul terminators. This also fixes a buffer overflow in the ifkind variable where the length of the interface name in *argv wasnt checked for size. Reviewed by: brooks Approved by: re (gnn) Revision Changes Path 1.134 +14 -7 src/sbin/ifconfig/ifconfig.c