From owner-cvs-src@FreeBSD.ORG Mon Jan 3 18:59:05 2005 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3F85016A4CE; Mon, 3 Jan 2005 18:59:05 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1994743D1F; Mon, 3 Jan 2005 18:59:05 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j03Ix4ix044525; Mon, 3 Jan 2005 18:59:04 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j03Ix4nb044524; Mon, 3 Jan 2005 18:59:04 GMT (envelope-from rwatson) Message-Id: <200501031859.j03Ix4nb044524@repoman.freebsd.org> From: Robert Watson Date: Mon, 3 Jan 2005 18:59:04 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sbin/ffsinfo ffsinfo.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Jan 2005 18:59:05 -0000 rwatson 2005-01-03 18:59:04 UTC FreeBSD src repository Modified files: sbin/ffsinfo ffsinfo.c Log: The ffsinfo utility uses atol() to parse numeric values out of optarg strings. This isn't necessarily a bug, but it can be slightly inconvenient, because atol() doesn't know how to parse hexadecimal or octal numbers and at least one of the options of ffsinfo(8) would be easier to use if it did. Changing atol() -> strtol() allows one to use hex masks for -l MASK, i.e.: orion:/a/freebsd/src/sbin/ffsinfo# ./ffsinfo -l 0x3ff / PR: 73110 Submitted by: keramida MFC after: 2 weeks Revision Changes Path 1.8 +10 -3 src/sbin/ffsinfo/ffsinfo.c