From: Johannes Schindelin Date: Mon, 3 Sep 2007 16:51:43 +0000 (+0100) Subject: verify-tag: also grok CR/LFs in the tag signature X-Git-Tag: v1.5.4-rc0~438^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=fec60a261d9375d1f129313bb68036fbd2a5175c;p=git.git verify-tag: also grok CR/LFs in the tag signature On some people's favorite platform, gpg outputs signatures with CR/LF line endings. So verify-tag has to play nice with them. Signed-off-by: Johannes Schindelin Signed-off-by: Junio C Hamano --- diff --git a/builtin-verify-tag.c b/builtin-verify-tag.c index dfcfcd045..cc4c55d7e 100644 --- a/builtin-verify-tag.c +++ b/builtin-verify-tag.c @@ -35,7 +35,7 @@ static int run_gpg_verify(const char *buf, unsigned long size, int verbose) /* find the length without signature */ len = 0; - while (len < size && prefixcmp(buf + len, PGP_SIGNATURE "\n")) { + while (len < size && prefixcmp(buf + len, PGP_SIGNATURE)) { eol = memchr(buf + len, '\n', size - len); len += eol ? eol - (buf + len) + 1 : size - len; }