Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 66b29ec5 authored by Joe Onorato's avatar Joe Onorato
Browse files

Need to skip the padding after reading.

m_dataEndPos points to the end of the data, not the beginning
of the next entity.
parent 29b936e8
Loading
Loading
Loading
Loading
+5 −3
Original line number Original line Diff line number Diff line
@@ -298,10 +298,12 @@ BackupDataReader::SkipEntityData()
    }
    }
    if (m_header.entity.dataSize > 0) {
    if (m_header.entity.dataSize > 0) {
        int pos = lseek(m_fd, m_dataEndPos, SEEK_SET);
        int pos = lseek(m_fd, m_dataEndPos, SEEK_SET);
        return pos == -1 ? (int)errno : (int)NO_ERROR;
        if (pos == -1) {
    } else {
            return errno;
        return NO_ERROR;
        }
    }
    }
    SKIP_PADDING();
    return NO_ERROR;
}
}


ssize_t
ssize_t