X-Git-Url: https://git.wh0rd.org/?p=dump.git;a=blobdiff_plain;f=restore%2Ftape.c;h=015dc876dffc3f61508d53170877221c24ca070d;hp=4e1713042931a764e8b3259fa9f8984b201ac05a;hb=7ae7e2fd107494c21ad619d1bd824ff7e72603f1;hpb=d6967896bc4e18f9b4359a2ef5be5c0f1bcc456a diff --git a/restore/tape.c b/restore/tape.c index 4e17130..015dc87 100644 --- a/restore/tape.c +++ b/restore/tape.c @@ -46,7 +46,7 @@ #ifndef lint static const char rcsid[] = - "$Id: tape.c,v 1.22 2000/12/21 11:14:54 stelian Exp $"; + "$Id: tape.c,v 1.23 2000/12/21 15:01:54 stelian Exp $"; #endif /* not lint */ #include @@ -1300,8 +1300,12 @@ getmore: #endif seek_failed = (lseek(mt, i, SEEK_CUR) == (off_t)-1); - if (seek_failed) - err(1, "continuation failed"); + if (seek_failed) { + warn("continuation failed"); + if (!yflag && !reply("assume end-of-tape and continue")) + exit(1); + i = 0; + } } /* * Handle end of tape.