bug#69368: [PATCH] Allow --zero with --check

2024-02-25 Thread Ricardo Branco
On 2/25/24 12:06, Pádraig Brady wrote: By adding this support we diverge the checksum file formats supported by check. I.e. users may inadvertently create such files that are not usable by any previous version of the checksum utilities. Any user of the --zero flag has already created complet

bug#69368: [PATCH]: md5sum: Allow --zero with --check

2024-02-25 Thread Ricardo Branco
Improved version. diff --git a/src/digest.c b/src/digest.c index e8d5ded33..e760afab3 100644 --- a/src/digest.c +++ b/src/digest.c @@ -1178,7 +1178,7 @@ digest_check (char const *checkfile_name) error (EXIT_FAILURE, 0, _("%s: too many checksum lines"), quotef (checkfile_na

bug#69368: [PATCH] Allow --zero with --check

2024-02-24 Thread Ricardo Branco
The --zero option is useless if not supported by --check. Attached patch fixes it. https://github.com/coreutils/coreutils/pull/81 Best, R diff --git a/src/digest.c b/src/digest.c index e8d5ded33..ddd816012 100644 --- a/src/digest.c +++ b/src/digest.c @@ -1178,7 +1177,7 @@ digest_check (char co