fwtool: do not strip metadata if extracting signature

This allows the signature to cover the metadata area

Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Felix Fietkau 2019-02-12 15:59:11 +01:00
parent db93949aa3
commit d5681e45f0

View File

@ -347,8 +347,10 @@ extract_data(const char *name)
ret = 0;
break;
} else if (tr.type == FWIMAGE_INFO) {
if (!metadata_file)
if (!metadata_file) {
dbuf.file_len += data_len + sizeof(tr);
break;
}
hdr = buf;
data_len -= sizeof(*hdr);