X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=restore%2Fmain.c;h=9b2ea0f3abef1f0b7ee9c549a6cb2b55e271bc55;hb=a1b67fc50f87e9febfd56bd2a7089eb569b852f6;hp=1843d4b431fe955439baf80427bd85b3810121f2;hpb=4d5ed2f38cb1dce0244a05f94c8aec7f725a1f33;p=dump.git diff --git a/restore/main.c b/restore/main.c index 1843d4b..9b2ea0f 100644 --- a/restore/main.c +++ b/restore/main.c @@ -41,7 +41,7 @@ #ifndef lint static const char rcsid[] = - "$Id: main.c,v 1.16 2001/02/21 16:13:05 stelian Exp $"; + "$Id: main.c,v 1.18 2001/03/20 10:02:48 stelian Exp $"; #endif /* not lint */ #include @@ -83,7 +83,7 @@ long volno = 0; long ntrec; char *dumpmap; char *usedinomap; -ino_t maxino; +dump_ino_t maxino; time_t dumptime; time_t dumpdate; FILE *terminal; @@ -105,7 +105,7 @@ int main(int argc, char *argv[]) { int ch; - ino_t ino; + dump_ino_t ino; char *inputdev = _PATH_DEFTAPE; char *symtbl = "./restoresymtable"; char *p, name[MAXPATHLEN]; @@ -401,13 +401,21 @@ main(int argc, char *argv[]) static void usage(void) { +#ifdef __linux__ + const char *ext2ver, *ext2date; + + ext2fs_get_library_version(&ext2ver, &ext2date); + (void)fprintf(stderr, "%s %s (using libext2fs %s of %s)\n", + __progname, _DUMP_VERSION, ext2ver, ext2date); +#else + (void)fprintf(stderr, "%s %s\n", __progname, _DUMP_VERSION); +#endif + #ifdef KERBEROS #define kerbflag "k" #else #define kerbflag #endif - (void)fprintf(stderr, - "%s %s\n", __progname, _DUMP_VERSION); (void)fprintf(stderr, "usage:\t%s%s\n\t%s%s\n\t%s%s\n\t%s%s\n\t%s%s\n", __progname, " -i [-ch" kerbflag "mMuvy] [-b blocksize] [-f file] [-s fileno]",