X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=dump%2Fmain.c;h=20562bbc17c71ff7329a56174d208c8711930049;hb=01fb6bd5f03cd25d80266fae5b789a18e76f7432;hp=263945a2543d05c692ed274d4d1a321c592cf88c;hpb=144a6db136ca266241860aadb1af8b2702df97fd;p=dump.git diff --git a/dump/main.c b/dump/main.c index 263945a..20562bb 100644 --- a/dump/main.c +++ b/dump/main.c @@ -2,7 +2,7 @@ * Ported to Linux's Second Extended File System as part of the * dump and restore backup suit * Remy Card , 1994-1997 - * Stelian Pop , 1999 + * Stelian Pop , 1999-2000 */ /*- @@ -40,7 +40,7 @@ #ifndef lint static const char rcsid[] = - "$Id: main.c,v 1.9 1999/11/22 19:08:50 tiniou Exp $"; + "$Id: main.c,v 1.12 2000/01/21 10:17:41 stelian Exp $"; #endif /* not lint */ #include @@ -514,8 +514,8 @@ main(int argc, char *argv[]) } if (sizest) { - printf("%ld\n", tapesize + 10); - exit(X_STARTUP); + printf("%.0f\n", ((double)tapesize + 10) * TP_BSIZE); + exit(X_FINOK); } /* stop here for size estimate */ if (pipeout || unlimited) {