X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=restore%2Fsymtab.c;h=d020f662f376c0cf89b51f1ee49b4e533f7b585c;hb=3dd5ecd75e8008104e314726ec16a4b9118f3d8b;hp=abf8d7ae6fca904e02cf3c55e96cdd0ad20a92e2;hpb=a1b67fc50f87e9febfd56bd2a7089eb569b852f6;p=dump.git diff --git a/restore/symtab.c b/restore/symtab.c index abf8d7a..d020f66 100644 --- a/restore/symtab.c +++ b/restore/symtab.c @@ -41,7 +41,7 @@ #ifndef lint static const char rcsid[] = - "$Id: symtab.c,v 1.13 2001/03/20 10:02:48 stelian Exp $"; + "$Id: symtab.c,v 1.16 2001/06/18 10:58:28 stelian Exp $"; #endif /* not lint */ /* @@ -59,7 +59,12 @@ static const char rcsid[] = #ifdef __linux__ #include +#include +#ifdef HAVE_EXT2FS_EXT2_FS_H +#include +#else #include +#endif #include #else /* __linux__ */ #include @@ -448,6 +453,7 @@ struct symtableheader { time_t dumpdate; dump_ino_t maxino; int32_t ntrec; + int32_t zflag; }; /* @@ -526,6 +532,7 @@ dumpsymtable(char *filename, long checkpt) hdr.dumptime = dumptime; hdr.dumpdate = dumpdate; hdr.ntrec = ntrec; + hdr.zflag = zflag; (void) fwrite((char *)&hdr, sizeof(struct symtableheader), 1, fd); if (ferror(fd)) { warn("fwrite"); @@ -595,6 +602,7 @@ initsymtable(char *filename) curfile.action = SKIP; dumptime = hdr.dumptime; dumpdate = hdr.dumpdate; + zflag = hdr.zflag; if (!bflag) newtapebuf(hdr.ntrec); getvol(hdr.volno);