]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Increase the limit for the -b option from 1024 to 8192.
authorTim Kientzle <kientzle@gmail.com>
Wed, 18 Nov 2009 06:26:03 +0000 (01:26 -0500)
committerTim Kientzle <kientzle@gmail.com>
Wed, 18 Nov 2009 06:26:03 +0000 (01:26 -0500)
Thanks to Tim Jones.

SVN-Revision: 1669

tar/bsdtar.c

index 09168995322505459dc8d402e69aede1ec5b714d..69804b81d51c53f1e62fc50a81e48b98ae4ec41d 100644 (file)
@@ -234,9 +234,9 @@ main(int argc, char **argv)
                        break;
                case 'b': /* SUSv2 */
                        t = atoi(bsdtar->optarg);
-                       if (t <= 0 || t > 1024)
+                       if (t <= 0 || t > 8192)
                                lafe_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 */