Need to skip the padding after reading.

m_dataEndPos points to the end of the data, not the beginning
of the next entity.
This commit is contained in:
Joe Onorato
2009-07-13 14:44:07 -07:00
parent 85d1f15826
commit ee5bbb7f63

View File

@@ -298,10 +298,12 @@ BackupDataReader::SkipEntityData()
}
if (m_header.entity.dataSize > 0) {
int pos = lseek(m_fd, m_dataEndPos, SEEK_SET);
return pos == -1 ? (int)errno : (int)NO_ERROR;
} else {
return NO_ERROR;
if (pos == -1) {
return errno;
}
}
SKIP_PADDING();
return NO_ERROR;
}
ssize_t