diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1997-03-26 01:14:15 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1997-03-26 01:14:15 +0000 |
commit | 194f29ba187fa41fb31ce0718a7a0431fa0af83f (patch) | |
tree | 306e15b8bd7bcc158331e734d7030cb8372a6697 /bin/pax/options.c | |
parent | 4649e5e76162ebe1256e93e58bc5b9d85f8c09a5 (diff) |
Blocking factor in tar is in 512byte blocks. Makes -b act like
``real'' tars.
Diffstat (limited to 'bin/pax/options.c')
-rw-r--r-- | bin/pax/options.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/pax/options.c b/bin/pax/options.c index 59f9059bd70..66d565fc341 100644 --- a/bin/pax/options.c +++ b/bin/pax/options.c @@ -1,4 +1,4 @@ -/* $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 $ */ /*- @@ -42,7 +42,7 @@ #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 */ @@ -609,12 +609,13 @@ tar_options(argc, argv) 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': /* |