1 |
commit: f931cecd430f96ab3ae7c3b1561104c7561af387 |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Nov 29 19:00:03 2017 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Nov 29 19:00:03 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=f931cecd |
7 |
|
8 |
hashgen: warn when an unsupported hash is found |
9 |
|
10 |
scripts/rsync-generation/hashgen.c | 3 +++ |
11 |
1 file changed, 3 insertions(+) |
12 |
|
13 |
diff --git a/scripts/rsync-generation/hashgen.c b/scripts/rsync-generation/hashgen.c |
14 |
index 7700e88198..25ae1db70e 100644 |
15 |
--- a/scripts/rsync-generation/hashgen.c |
16 |
+++ b/scripts/rsync-generation/hashgen.c |
17 |
@@ -231,6 +231,9 @@ parse_layout_conf(const char *path) |
18 |
ret |= HASH_WHIRLPOOL; |
19 |
} else if (strncmp(tok, "BLAKE2B", sz) == 0) { |
20 |
ret |= HASH_BLAKE2B; |
21 |
+ } else { |
22 |
+ fprintf(stderr, "warning: unsupported hash from " |
23 |
+ "layout.conf: %.*s\n", (int)sz, tok); |
24 |
} |
25 |
while (isspace((int)*q) && *q != '\n') |
26 |
q++; |