From owner-cvs-all@FreeBSD.ORG Wed Oct 4 18:21:18 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BBB6016A4A7; Wed, 4 Oct 2006 18:21:18 +0000 (UTC) (envelope-from marcel@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9CCF943DBC; Wed, 4 Oct 2006 18:20:27 +0000 (GMT) (envelope-from marcel@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k94IKQCd033613; Wed, 4 Oct 2006 18:20:27 GMT (envelope-from marcel@repoman.freebsd.org) Received: (from marcel@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k94IKQJt033611; Wed, 4 Oct 2006 18:20:26 GMT (envelope-from marcel) Message-Id: <200610041820.k94IKQJt033611@repoman.freebsd.org> From: Marcel Moolenaar Date: Wed, 4 Oct 2006 18:20:26 +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/gpt add.c label.c remove.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: Wed, 04 Oct 2006 18:21:18 -0000 marcel 2006-10-04 18:20:26 UTC FreeBSD src repository Modified files: sbin/gpt add.c label.c remove.c Log: Use strtoll(3) instead of strtol(3) for the starting block or partition size. On 32-bit platforms sizeof(long) < sizeof(off_t) and using strtol(3) would prevent partitions larger than 4G sectors or beyond 4G blocks. PR: bin/103991 MFC after: 3 days Revision Changes Path 1.15 +2 -2 src/sbin/gpt/add.c 1.3 +2 -2 src/sbin/gpt/label.c 1.10 +2 -2 src/sbin/gpt/remove.c