]> git.wh0rd.org - dump.git/blobdiff - restore/tape.c
dump LABEL=/ fix.
[dump.git] / restore / tape.c
index ff524ce0c1c3efbe202e978eb83bcd5326828a8d..94ceab46fdfa9a706cac851acb3108936dd05fcf 100644 (file)
@@ -46,7 +46,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-       "$Id: tape.c,v 1.55 2002/01/25 14:59:53 stelian Exp $";
+       "$Id: tape.c,v 1.57 2002/01/31 10:25:55 stelian Exp $";
 #endif /* not lint */
 
 #include <config.h>
@@ -367,6 +367,7 @@ setup(void)
        usedinomap = map;
        curfile.action = USING;
        getfile(xtrmap, xtrmapskip);
+       findinode(&spcl);
        if (spcl.c_type != TS_BITS)
                errx(1, "Cannot find file dump list");
        map = calloc((unsigned)1, (unsigned)howmany(maxino, NBBY));
@@ -382,6 +383,7 @@ setup(void)
         */
        if (oldinofmt == 0)
                SETINO(WINO, dumpmap);
+       findinode(&spcl);
 }
 
 /*
@@ -853,7 +855,7 @@ skipfile(void)
 void
 getfile(void (*fill) __P((char *, size_t)), void (*skip) __P((char *, size_t)))
 {
-       register int i;
+       int i;
        volatile int curblk = 0;
        volatile quad_t size = spcl.c_dinode.di_size;
        volatile int last_write_was_hole = 0;
@@ -2265,7 +2267,7 @@ findinode(struct s_spcl *header)
 static int
 checksum(int *buf)
 {
-       register int i, j;
+       int i, j;
 
        j = sizeof(union u_spcl) / sizeof(int);
        i = 0;