XXX Really old packages have HEADER_IMAGE, not HEADER_SIGNATURES.
CVS patchset: 7861 CVS date: 2005/06/06 23:35:24
This commit is contained in:
parent
6a72073729
commit
7320bab1df
|
@ -257,6 +257,12 @@ rpmRC rpmReadSignature(FD_t fd, Header * sighp, sigType sig_type,
|
|||
/*@-sizeoftype@*/
|
||||
/*@-bounds@*/
|
||||
(void) memcpy(info, dataEnd, REGION_TAG_COUNT);
|
||||
/* XXX Really old packages have HEADER_IMAGE, not HEADER_SIGNATURES. */
|
||||
if (info->tag == htonl(RPMTAG_HEADERIMAGE)) {
|
||||
int_32 stag = htonl(RPMTAG_HEADERSIGNATURES);
|
||||
info->tag = stag;
|
||||
memcpy(dataEnd, &stag, sizeof(stag));
|
||||
}
|
||||
/*@=bounds@*/
|
||||
dataEnd += REGION_TAG_COUNT;
|
||||
|
||||
|
|
Loading…
Reference in New Issue