X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=restore%2Fsymtab.c;h=d020f662f376c0cf89b51f1ee49b4e533f7b585c;hb=95d326c036906b75044736fca88830890af47410;hp=4cabfb567bc0b44401089640e7a03bee9a05b2ad;hpb=717bdcef94c7487831a43048751ca868f7d8bae4;p=dump.git diff --git a/restore/symtab.c b/restore/symtab.c index 4cabfb5..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.14 2001/04/24 10:59:13 stelian Exp $"; + "$Id: symtab.c,v 1.16 2001/06/18 10:58:28 stelian Exp $"; #endif /* not lint */ /* @@ -60,7 +60,11 @@ static const char rcsid[] = #ifdef __linux__ #include #include +#ifdef HAVE_EXT2FS_EXT2_FS_H +#include +#else #include +#endif #include #else /* __linux__ */ #include @@ -449,6 +453,7 @@ struct symtableheader { time_t dumpdate; dump_ino_t maxino; int32_t ntrec; + int32_t zflag; }; /* @@ -527,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"); @@ -596,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);