!82 allow a specified algo different from the list file one

From: @ZhouShuiQing 
Reviewed-by: @HuaxinLuGitee 
Signed-off-by: @HuaxinLuGitee
This commit is contained in:
openeuler-ci-bot 2023-08-22 02:32:37 +00:00 committed by Gitee
commit 1cd96e78a5
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 31 additions and 1 deletions

View File

@ -0,0 +1,26 @@
From 1b464cfc50f50439f95f8c38bcbcc26253bd8036 Mon Sep 17 00:00:00 2001
From: Zhou Shuiqing <zhoushuiqing2@huawei.com>
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 <zhoushuiqing2@huawei.com>
---
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

View File

@ -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 <zhoushuiqing2@huawei.com> - 0.3.95-14
- Allowing a specified algorithm different from the list file.
* Wed Jul 26 2023 zhoushuiqing <zhoushuiqing2@huawei.com> - 0.3.95-13
- fix the compilation error caused by the -Werror=address compilation option in gcc.