digest-list-tools/allow-a-specified-algo-different-from-the-list-file.patch

27 lines
740 B
Diff

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