Fix the calculation of hdr size
This commit is contained in:
parent
02276c45c7
commit
8b9c2cc01e
@ -424,7 +424,7 @@ index 0000000..c1864c7
|
||||
+ return -EACCES;
|
||||
+
|
||||
+ /* Check if the signature has already included a header */
|
||||
+ hdr_exist = (st.st_size - sizeof(sig_hdr)) % 128 == 0 ? 1 : 0;
|
||||
+ hdr_exist = st.st_size % 128 == 0 ? 0 : 1;
|
||||
+ if (!hdr_exist) {
|
||||
+ ret = fill_pgp_signature_header(te, sig_hdr);
|
||||
+ if (ret < 0)
|
||||
|
||||
5
rpm.spec
5
rpm.spec
@ -1,6 +1,6 @@
|
||||
Name: rpm
|
||||
Version: 4.17.0
|
||||
Release: 42
|
||||
Release: 43
|
||||
Summary: RPM Package Manager
|
||||
License: GPLv2+
|
||||
URL: http://www.rpm.org/
|
||||
@ -415,6 +415,9 @@ make check || (cat tests/rpmtests.log; exit 0)
|
||||
%{_mandir}/man1/gendiff.1*
|
||||
|
||||
%changelog
|
||||
* Thu Aug 22 2024 luhuaxin <luhuaxin1@huawei.com> - 4.17.0-43
|
||||
- Fix the calculation of hdr size
|
||||
|
||||
* Tue Aug 20 2024 luhuaxin <luhuaxin1@huawei.com> - 4.17.0-42
|
||||
- Fix the wrong IMA signature header check
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user