[PATCH] md5sum: Set optind to 1 if getopt is not called

Rob Landley rob at landley.net
Wed Jul 26 16:10:30 UTC 2006


On Sunday 23 July 2006 2:29 pm, Shaun Jackman wrote:
> Ping!

> >         if (ENABLE_FEATURE_MD5_SHA1_SUM_CHECK)
> >                 flags = bb_getopt_ulflags(argc, argv, "scw");
> > +       else
> > +               optind = 1;
> >
> >         if (ENABLE_FEATURE_MD5_SHA1_SUM_CHECK && !(flags & FLAG_CHECK)) {
> >                 if (flags & FLAG_SILENT) {

Ah, right.  This was applied to my tree but hadn't been checked in (did it on 
the bus, no internet access at the time...)

Applied.

Rob
-- 
Never bet against the cheap plastic solution.



More information about the busybox mailing list