[prev in list] [next in list] [prev in thread] [next in thread] 

List:       coreutils-bug
Subject:    Re: [PATCH] Support generic BSD message digest formats in md5sum.c
From:       Jim Meyering <jim () meyering ! net>
Date:       2003-08-31 13:57:31
Message-ID: 85r832vsj8.fsf () pi ! meyering ! net
[Download RAW message or body]

Lawrence Teo <lcteo@uncc.edu> wrote:
> Here's a patch against 5.0.1 to allow md5sum.c to support generic BSD
> message digest formats. Version 5.0.1 already has support for BSD MD5
> format; this patch modifies the code so that `sha1sum --check' will
> also work with BSD-style SHA1 checksum files.
...
> 2003-08-22  Lawrence Teo  <lcteo@uncc.edu>
>
>          * src/md5sum.c (split_3): Accept the BSD format for generic
>          message digest modes.  Currently works with BSD's MD5 and SHA1
>          formats since these are the two algorithms presently used in
>          coreutils.  Updated comments to reflect this change.
>          (bsd_split_3): Updated comments.
>
>          * tests/md5sum/basic-1: New test to make sure that
>          `md5sum --check' doesn't accept the BSD SHA1 format (adapted
>          from `check-bsd' test in tests/sha1sum/basic-1).
>
>          * tests/sha1sum/basic-1: New tests for --check exit status
>          and allow BSD SHA1 format (adapted from tests in
>          tests/md5sum/basic-1).

Thank you for those patches.
I've applied them, with some minor changes.



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic