diff options
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | 2007-09-03 17:51:43 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-09-03 16:44:35 -0700 |
commit | fec60a261d9375d1f129313bb68036fbd2a5175c (patch) | |
tree | e638606df08f27c8d206d7c871b11ec81a43c5fc /builtin-verify-tag.c | |
parent | Start 1.5.4 cycle (diff) | |
download | tgif-fec60a261d9375d1f129313bb68036fbd2a5175c.tar.xz |
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>
Diffstat (limited to 'builtin-verify-tag.c')
-rw-r--r-- | builtin-verify-tag.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-verify-tag.c b/builtin-verify-tag.c index dfcfcd0455..cc4c55d7ee 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; } |