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>
master
Felix Fietkau 6 years ago
parent db93949aa3
commit d5681e45f0
  1. 4
      package/system/fwtool/src/fwtool.c

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

Loading…
Cancel
Save