diff --git a/sbin/restore/tape.c b/sbin/restore/tape.c index 1355aff45e55..a566c5acf339 100644 --- a/sbin/restore/tape.c +++ b/sbin/restore/tape.c @@ -227,7 +227,7 @@ setup(void) volno = 1; setdumpnum(); FLUSHTAPEBUF(); - if (!pipein && !bflag) + if (!pipein && !pipecmdin && !bflag) findtapeblksize(); if (gethead(&spcl) == FAIL) { fprintf(stderr, "Tape is not a dump tape\n");