bug-coreutils
[Top][All Lists]
Advanced

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

[patch] Checking multiple .md5 files (updated to CVS)


From: Shish
Subject: [patch] Checking multiple .md5 files (updated to CVS)
Date: Sun, 17 Jul 2005 18:47:09 +0100
User-agent: Mozilla Thunderbird 1.0.2 (X11/20050404)

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));

reply via email to

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