reset longjmp flag when restarting extraction
authorKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Sat, 19 Jan 1985 14:14:59 +0000 (06:14 -0800)
committerKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Sat, 19 Jan 1985 14:14:59 +0000 (06:14 -0800)
SCCS-vsn: sbin/restore/tape.c 3.25

usr/src/sbin/restore/tape.c

index d8db1ce..1ac29ea 100644 (file)
@@ -1,5 +1,5 @@
 #ifndef lint
 #ifndef lint
-static char sccsid[] = "@(#)tape.c     3.24    (Berkeley)      85/01/14";
+static char sccsid[] = "@(#)tape.c     3.25    (Berkeley)      85/01/18";
 #endif
 
 /* Copyright (c) 1983 Regents of the University of California */
 #endif
 
 /* Copyright (c) 1983 Regents of the University of California */
@@ -187,8 +187,10 @@ getvol(nextvol)
        union u_spcl tmpspcl;
 #      define tmpbuf tmpspcl.s_spcl
 
        union u_spcl tmpspcl;
 #      define tmpbuf tmpspcl.s_spcl
 
-       if (nextvol == 1)
+       if (nextvol == 1) {
                tapesread = 0;
                tapesread = 0;
+               gettingfile = 0;
+       }
        if (pipein) {
                if (nextvol != 1)
                        panic("Changing volumes on pipe input?\n");
        if (pipein) {
                if (nextvol != 1)
                        panic("Changing volumes on pipe input?\n");