Date: Sat, 6 Feb 2010 19:48:59 +0000 (UTC) From: Tim Kientzle <kientzle@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r203558 - head/usr.bin/tar Message-ID: <201002061948.o16JmxoK021521@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201002061948.o16JmxoK021521>