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:
parent
db93949aa3
commit
d5681e45f0
1 changed files with 3 additions and 1 deletions
|
@ -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…
Reference in a new issue