-/* $OpenBSD: options.c,v 1.16 1997/03/02 09:46:47 tholo Exp $ */
+/* $OpenBSD: options.c,v 1.17 1997/03/26 01:14:13 millert Exp $ */
/* $NetBSD: options.c,v 1.6 1996/03/26 23:54:18 mrg Exp $ */
/*-
#if 0
static char sccsid[] = "@(#)options.c 8.2 (Berkeley) 4/18/94";
#else
-static char rcsid[] = "$OpenBSD: options.c,v 1.16 1997/03/02 09:46:47 tholo Exp $";
+static char rcsid[] = "$OpenBSD: options.c,v 1.17 1997/03/26 01:14:13 millert Exp $";
#endif
#endif /* not lint */
switch(c) {
case 'b':
/*
- * specify blocksize
+ * specify blocksize in 512-byte blocks
*/
if ((wrblksz = (int)str_offt(optarg)) <= 0) {
paxwarn(1, "Invalid block size %s", optarg);
tar_usage();
}
+ wrblksz *= 512; /* XXX - check for int oflow */
break;
case 'c':
/*
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.\" $OpenBSD: tar.1,v 1.4 1996/12/09 12:02:17 deraadt Exp $
+.\" $OpenBSD: tar.1,v 1.5 1997/03/26 01:14:14 millert Exp $
.\"
.Dd June 11, 1996
.Dt TAR 1
In addition to the flags mentioned above, any of the following
flags may be used:
.Bl -tag -width Ar
-.It Fl b Ar blocksize
-Set block size to use for archive. Any multiple of 512 between
-10240 and 32256 may be used.
+.It Fl b Ar "blocking factor"
+Set blocking factor to use for archive,
+.Nm tar
+uses 512 byte blocks. The blocking factor may not be larger
+than 63 (32256 bytes).
.It Fl e
Stop after first error.
.It Fl f Ar archive