summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-02-10 20:20:04 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-02-10 20:20:04 +0000
commit4dc55b5a14cfb7aecd93ed9d0425e2821d533bf4 (patch)
treed48fc24bee80467539ebddd3540df0da6ce53490 /sbin
parent9f46bdfc15c1e5edefe0d9aebbba12b10cfc87b8 (diff)
allow tape blocksize > disk blocksize to work; dwmalone@maths.tcd.ie
Diffstat (limited to 'sbin')
-rw-r--r--sbin/restore/tape.c4
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)