Gentoo Archives: gentoo-commits

From: Fabian Groffen <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/prefix:master commit in: scripts/rsync-generation/
Date: Wed, 29 Nov 2017 19:30:14
Message-Id: 1511982003.f931cecd430f96ab3ae7c3b1561104c7561af387.grobian@gentoo
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++;