Fix the calculation of hdr size
This commit is contained in:
parent
4bde5e5745
commit
cf1191174a
@ -363,7 +363,7 @@ index 0000000..715b8d6
|
|||||||
+ return -EACCES;
|
+ return -EACCES;
|
||||||
+
|
+
|
||||||
+ /* Check if the signature has already included a header */
|
+ /* 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) {
|
+ if (!hdr_exist) {
|
||||||
+ ret = fill_pgp_signature_header(te, sig_hdr);
|
+ ret = fill_pgp_signature_header(te, sig_hdr);
|
||||||
+ if (ret < 0)
|
+ if (ret < 0)
|
||||||
|
|||||||
5
rpm.spec
5
rpm.spec
@ -1,6 +1,6 @@
|
|||||||
Name: rpm
|
Name: rpm
|
||||||
Version: 4.18.2
|
Version: 4.18.2
|
||||||
Release: 11
|
Release: 12
|
||||||
Summary: RPM Package Manager
|
Summary: RPM Package Manager
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: http://www.rpm.org/
|
URL: http://www.rpm.org/
|
||||||
@ -337,6 +337,9 @@ make clean
|
|||||||
%exclude %{_mandir}/man8/rpmspec.8.gz
|
%exclude %{_mandir}/man8/rpmspec.8.gz
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Aug 22 2024 luhuaxin <luhuaxin1@huawei.com> - 4.18.2-12
|
||||||
|
- Fix the calculation of hdr size
|
||||||
|
|
||||||
* Tue Aug 20 2024 luhuaxin <luhuaxin1@huawei.com> - 4.18.2-11
|
* Tue Aug 20 2024 luhuaxin <luhuaxin1@huawei.com> - 4.18.2-11
|
||||||
- Fix the wrong IMA signature header check
|
- Fix the wrong IMA signature header check
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user