coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 10/12] cksum: support digest detection for tagged format


From: Pádraig Brady
Subject: Re: [PATCH 10/12] cksum: support digest detection for tagged format
Date: Tue, 14 Sep 2021 13:00:47 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:84.0) Gecko/20100101 Thunderbird/84.0

On 12/09/2021 19:14, Pádraig Brady wrote:
> @@ -652,6 +692,21 @@ split_3 (char *s, size_t s_len,
>
>     /* Check for BSD-style checksum line. */
>
> +#if HASH_ALGO_CKSUM
> +  if (! algorithm_specified)
> +    {
> +      ptrdiff_t algo_tag = algorithm_from_tag (s);

The above should be s+i to handle '\' and whitespace prefixes.
I'll add a test.

cheers,
Pádraig



reply via email to

[Prev in Thread] Current Thread [Next in Thread]