diff --git a/allow-a-specified-algo-different-from-the-list-file.patch b/allow-a-specified-algo-different-from-the-list-file.patch new file mode 100644 index 0000000..1f501ab --- /dev/null +++ b/allow-a-specified-algo-different-from-the-list-file.patch @@ -0,0 +1,26 @@ +From 1b464cfc50f50439f95f8c38bcbcc26253bd8036 Mon Sep 17 00:00:00 2001 +From: Zhou Shuiqing +Date: Tue, 22 Aug 2023 10:24:23 +0800 +Subject: [PATCH] allow a specified algo different from the list file one + +Signed-off-by: Zhou Shuiqing +--- + generators/compact.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/generators/compact.c b/generators/compact.c +index 4107e44..b3df1fa 100644 +--- a/generators/compact.c ++++ b/generators/compact.c +@@ -441,7 +441,7 @@ int generator(int dirfd, int pos, struct list_head *head_in, + NULL, 10)]; + } + if (list_algo != algo) +- continue; ++ printf("list_algo != algo\n"); + } + + paths[0] = &cur->path[2]; +-- +2.33.0 + diff --git a/digest-list-tools.spec b/digest-list-tools.spec index 92f809d..68190d3 100644 --- a/digest-list-tools.spec +++ b/digest-list-tools.spec @@ -1,6 +1,6 @@ name: digest-list-tools Version: 0.3.95 -Release: 13 +Release: 14 Summary: Utilities for IMA Digest Lists extension Source0: https://gitee.com/openeuler/%{name}/repository/archive/v%{version}.tar.gz @@ -18,6 +18,7 @@ Patch6: fix-file-resource-leakage-and-memory-leakage.patch Patch7: fix-error-exit-in-dracut-program.patch Patch8: fix-cap_struct-to-adapter-libcap-2.61.patch Patch9: fix-the-compilation-error.patch +Patch10: allow-a-specified-algo-different-from-the-list-file.patch Requires: libcap >= 2.61 BuildRequires: autoconf automake libcurl-devel libtool rpm-devel dracut gzip @@ -130,6 +131,9 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/man1/%{name}.1.gz %changelog +* Tue Aug 22 2023 zhoushuiqing - 0.3.95-14 +- Allowing a specified algorithm different from the list file. + * Wed Jul 26 2023 zhoushuiqing - 0.3.95-13 - fix the compilation error caused by the -Werror=address compilation option in gcc.