From: Stelian Pop Date: Wed, 30 Mar 2005 13:34:00 +0000 (+0000) Subject: Fix an issue with the size of dump maps appearing when the filesystem has been resize... X-Git-Tag: release_0_4b40~2 X-Git-Url: https://git.wh0rd.org/?p=dump.git;a=commitdiff_plain;h=a4bfc6ca5a01f2cef94fb6a147024e8b52101b6e;ds=sidebyside Fix an issue with the size of dump maps appearing when the filesystem has been resized since the previous incremental dump. --- diff --git a/restore/symtab.c b/restore/symtab.c index 4a2e1ab..b69259a 100644 --- a/restore/symtab.c +++ b/restore/symtab.c @@ -37,7 +37,7 @@ #ifndef lint static const char rcsid[] = - "$Id: symtab.c,v 1.24 2005/01/14 13:04:07 stelian Exp $"; + "$Id: symtab.c,v 1.25 2005/03/30 13:34:00 stelian Exp $"; #endif /* not lint */ /* @@ -712,8 +712,10 @@ initsymtable(char *filename) panic("initsymtable called from command %c\n", command); break; } - resizemaps(maxino, hdr.maxino); - maxino = hdr.maxino; + if (hdr.maxino > maxino) { + resizemaps(maxino, hdr.maxino); + maxino = hdr.maxino; + } entrytblsize = hdr.entrytblsize; entry = (struct entry **) (base + tblsize - (entrytblsize * sizeof(struct entry *)));