commit:     f931cecd430f96ab3ae7c3b1561104c7561af387
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 29 19:00:03 2017 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Wed Nov 29 19:00:03 2017 +0000
URL:        https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=f931cecd

hashgen: warn when an unsupported hash is found

 scripts/rsync-generation/hashgen.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/scripts/rsync-generation/hashgen.c 
b/scripts/rsync-generation/hashgen.c
index 7700e88198..25ae1db70e 100644
--- a/scripts/rsync-generation/hashgen.c
+++ b/scripts/rsync-generation/hashgen.c
@@ -231,6 +231,9 @@ parse_layout_conf(const char *path)
                                                ret |= HASH_WHIRLPOOL;
                                        } else if (strncmp(tok, "BLAKE2B", sz) 
== 0) {
                                                ret |= HASH_BLAKE2B;
+                                       } else {
+                                               fprintf(stderr, "warning: 
unsupported hash from "
+                                                               "layout.conf: 
%.*s\n", (int)sz, tok);
                                        }
                                        while (isspace((int)*q) && *q != '\n')
                                                q++;

Reply via email to