-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Paul Eggert on 8/9/2007 4:04 PM:
> Jim Meyering <[EMAIL PROTECTED]> writes:
> 
>> find's locate.c uses it, too.

Actually, you would also need to bump find's gnulib-import.config to pull
in a newer date, before this matters.

> -  while ((optc = getopt_long (argc, argv, "Abcd:eEil:prsm0SwHPL", longopts, 
> (int *) 0)) != -1)
> +  while ((optc = getopt_long (argc, argv, "Abcd:eEil:prsm0SwHPL", longopts, 
> &opti)) != -1)

Didn't we decide that opti is not reset between getopt_long invocations?
Therefore, this should be:

while (1)
  {
    opti = -1;
    optc = getopt_long(...);
    if (optc == -1)
      break;
    switch (optc)
...

And you would also have to patch POTFILES.in.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             [EMAIL PROTECTED]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGu9TO84KuGfSFAYARAuPtAJsFH9Fl1eno2B1RJi5A4xF+fVAcswCfZY9Z
kDGT8PZNmHxb5RVqBDCLA4M=
=myOH
-----END PGP SIGNATURE-----


_______________________________________________
Bug-findutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-findutils

Reply via email to