]> git.wh0rd.org - dump.git/blobdiff - dump/main.c
Handle EINTR in atomical reads/writes in dump.
[dump.git] / dump / main.c
index 3c56b84cfb43a82330b7539c445d873b393cef8c..3a371b13ad245e290d04592f6fce524c56116781 100644 (file)
@@ -40,7 +40,7 @@
 
 #ifndef lint
 static const char rcsid[] =
-       "$Id: main.c,v 1.10 1999/12/17 10:14:59 tiniou Exp $";
+       "$Id: main.c,v 1.11 2000/01/07 19:24:04 tiniou Exp $";
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -514,7 +514,7 @@ main(int argc, char *argv[])
        }
 
        if (sizest) {
-               printf("%ld\n", tapesize + 10);
+               printf("%.0f\n", ((double)tapesize + 10) * TP_BSIZE);
                exit(X_FINOK);
        } /* stop here for size estimate */