Skip to content

Commit fec60a2

Browse files
dschogitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 1e61b76 commit fec60a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin-verify-tag.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ static int run_gpg_verify(const char *buf, unsigned long size, int verbose)
3535

3636
/* find the length without signature */
3737
len = 0;
38-
while (len < size && prefixcmp(buf + len, PGP_SIGNATURE "\n")) {
38+
while (len < size && prefixcmp(buf + len, PGP_SIGNATURE)) {
3939
eol = memchr(buf + len, '\n', size - len);
4040
len += eol ? eol - (buf + len) + 1 : size - len;
4141
}

0 commit comments

Comments
 (0)