]> git.wh0rd.org - dump.git/blobdiff - restore/tape.c
Another set of cleanups from Andreas.
[dump.git] / restore / tape.c
index 1bb6d8c2d45192a6e023e85fed08b2f6962bebc7..d04866de64d6b70437c95d4e3dc830d2dbfc3d0b 100644 (file)
@@ -46,7 +46,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-       "$Id: tape.c,v 1.28 2001/03/20 09:14:58 stelian Exp $";
+       "$Id: tape.c,v 1.30 2001/03/20 20:39:36 stelian Exp $";
 #endif /* not lint */
 
 #include <config.h>
@@ -1237,7 +1237,7 @@ comparefile(char *name)
                        panic("cannot delete tmp file %s: %s\n",
                              tmpfile, strerror(errno));
                }
-               if ((ofile = creat(tmpfile, 0600)) < 0) {
+               if ((ofile = open(tmpfile, O_WRONLY | O_CREAT | O_TRUNC, 0600)) < 0) {
                        panic("cannot create file temp file %s: %s\n",
                              name, strerror(errno));
                }
@@ -1981,7 +1981,7 @@ good:
 static void
 accthdr(struct s_spcl *header)
 {
-       static ino_t previno = 0x7fffffff;
+       static dump_ino_t previno = 0x7fffffff;
        static int prevtype;
        static long predict;
        long blks, i;