@matheusbsbs / matheus-bagliano / commits / fec60a261d
Fork 0

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 <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Johannes Schindelin committed Sep 3, 2007 at 17:51 UTC fec60a261d9375d1f129313bb68036fbd2a5175c
1 file changed +1 -1
builtin-verify-tag.c
+1 -1
@@ -35,7 +35,7 @@ static int run_gpg_verify(const char *buf, unsigned long size, int verbose)
35
36 /* find the length without signature */
37 len = 0;
38 - while (len < size && prefixcmp(buf + len, PGP_SIGNATURE "\n")) {
38 + while (len < size && prefixcmp(buf + len, PGP_SIGNATURE)) {
39 eol = memchr(buf + len, '\n', size - len);
40 len += eol ? eol - (buf + len) + 1 : size - len;
41 }