diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-02-10 20:20:04 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-02-10 20:20:04 +0000 |
commit | 4dc55b5a14cfb7aecd93ed9d0425e2821d533bf4 (patch) | |
tree | d48fc24bee80467539ebddd3540df0da6ce53490 | |
parent | 9f46bdfc15c1e5edefe0d9aebbba12b10cfc87b8 (diff) |
allow tape blocksize > disk blocksize to work; dwmalone@maths.tcd.ie
-rw-r--r-- | sbin/restore/tape.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/restore/tape.c b/sbin/restore/tape.c index fb0c022a09d..88c2d2199f4 100644 --- a/sbin/restore/tape.c +++ b/sbin/restore/tape.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tape.c,v 1.11 1997/08/24 08:07:23 downsj Exp $ */ +/* $OpenBSD: tape.c,v 1.12 1998/02/10 20:20:03 deraadt Exp $ */ /* $NetBSD: tape.c,v 1.26 1997/04/15 07:12:25 lukem Exp $ */ /* @@ -221,6 +221,8 @@ setup() dumpdate = spcl.c_date; if (stat(".", &stbuf) < 0) err(1, "cannot stat ."); + if (stbuf.st_blksize > 0 && stbuf.st_blksize < TP_BSIZE ) + fssize = TP_BSIZE; if (stbuf.st_blksize >= TP_BSIZE && stbuf.st_blksize <= MAXBSIZE) fssize = stbuf.st_blksize; if (((fssize - 1) & fssize) != 0) |