From owner-cvs-src-old@FreeBSD.ORG Sun Jul 24 19:14:13 2011 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 612771065740 for ; Sun, 24 Jul 2011 19:14:13 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 504A08FC12 for ; Sun, 24 Jul 2011 19:14:13 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id p6OJEDNc074296 for ; Sun, 24 Jul 2011 19:14:13 GMT (envelope-from ed@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id p6OJEDmY074295 for cvs-src-old@freebsd.org; Sun, 24 Jul 2011 19:14:13 GMT (envelope-from ed@repoman.freebsd.org) Message-Id: <201107241914.p6OJEDmY074295@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to ed@repoman.freebsd.org using -f From: Ed Schouten Date: Sun, 24 Jul 2011 19:13:54 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_8 Subject: cvs commit: src/usr.sbin/config main.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Jul 2011 19:14:13 -0000 ed 2011-07-24 19:13:54 UTC FreeBSD src repository Modified files: (Branch: RELENG_8) usr.sbin/config main.c Log: SVN rev 224295 on 2011-07-24 19:13:54Z by ed MFC r223744: Improve portability of config(8). - Use strlen(dp->d_name) instead of the unportable dp->d_namlen. Rename i to len to make it slightly more descriptive and prevent negative indexing of the array. - Replace index() by strchr(). This supposedly fixes compilation on GNU systems. Submitted by: Robert Millan (original patch) Revision Changes Path 1.81.2.6 +5 -4 src/usr.sbin/config/main.c