There weren't any comments last time, and it didn't seem to get applied,
so I figured I'd try again with a patch against current CVS for easier
applying (rather than the last proper release). A rejection would be
favoured over silence, so at least I know my email setup is working :)
-- Shish
Index: md5sum.c
===================================================================
RCS file: /cvsroot/coreutils/coreutils/src/md5sum.c,v
retrieving revision 1.138
diff -r1.138 md5sum.c
618,624c618,619
< if (optind + 1 < argc)
< {
< error (0, 0, _("extra operand %s"), quote (argv[optind + 1]));
< fprintf (stderr, "%s\n",
< _("Only one operand may be specified when using --check."));
< usage (EXIT_FAILURE);
< }
---
> if (optind == argc)
> argv[argc++] = "-";
626,627c621,622
< ok = digest_check (optind == argc ? "-" : argv[optind],
< DIGEST_STREAM (algorithm));
---
> for (; optind < argc; ++optind)
> ok &= digest_check (argv[optind], DIGEST_STREAM (algorithm));
_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils