1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-19 02:29:40 +00:00

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.
This commit is contained in:
Tim Kientzle 2010-02-06 19:48:59 +00:00
parent ae41a0ad92
commit 67d6d61952
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=203558

View File

@ -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 */