From owner-svn-src-all@FreeBSD.ORG Sat Feb 6 19:49:00 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 064EC1065672; Sat, 6 Feb 2010 19:49:00 +0000 (UTC) (envelope-from kientzle@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id E75468FC19; Sat, 6 Feb 2010 19:48:59 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o16JmxBr021523; Sat, 6 Feb 2010 19:48:59 GMT (envelope-from kientzle@svn.freebsd.org) Received: (from kientzle@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o16JmxoK021521; Sat, 6 Feb 2010 19:48:59 GMT (envelope-from kientzle@svn.freebsd.org) Message-Id: <201002061948.o16JmxoK021521@svn.freebsd.org> From: Tim Kientzle Date: Sat, 6 Feb 2010 19:48:59 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r203558 - head/usr.bin/tar X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Feb 2010 19:49:00 -0000 Author: kientzle Date: Sat Feb 6 19:48:59 2010 New Revision: 203558 URL: http://svn.freebsd.org/changeset/base/203558 Log: Allow -b up to 8192. I've had reports from people who routinely use -b 2048 (1MiB block size). Setting the limit to 8192 should allow some room for growth while still helping people who mistakenly put in byte counts here instead of block counts. Modified: head/usr.bin/tar/bsdtar.c Modified: head/usr.bin/tar/bsdtar.c ============================================================================== --- head/usr.bin/tar/bsdtar.c Sat Feb 6 19:44:37 2010 (r203557) +++ head/usr.bin/tar/bsdtar.c Sat Feb 6 19:48:59 2010 (r203558) @@ -186,9 +186,9 @@ main(int argc, char **argv) break; case 'b': /* SUSv2 */ t = atoi(bsdtar->optarg); - if (t <= 0 || t > 1024) + if (t <= 0 || t > 8192) bsdtar_errc(1, 0, - "Argument to -b is out of range (1..1024)"); + "Argument to -b is out of range (1..8192)"); bsdtar->bytes_per_block = 512 * t; break; case 'C': /* GNU tar */