And another place we need to lseek() after dup().

This commit is contained in:
Lloyd Parkes 2022-10-16 12:50:49 +13:00
parent 635aa2a3fc
commit 7dcc9c664e
1 changed files with 1 additions and 0 deletions

View File

@ -3607,6 +3607,7 @@ static int fstReaderRecreateHierFile(struct fstReaderContext *xc)
fflush(xc->f);
#endif
zfd = dup(fileno(xc->f));
lseek(zfd, ftell(xc->f), SEEK_SET);
zhandle = gzdopen(zfd, "rb");
if (!zhandle) {
close(zfd);