GNU getopt resets itself partially when the application sets optind to 0.
commitf1365d06438404a7e67f45d1d2b51972129c2df2
authorJoerg Sonnenberger <joerg@dragonflybsd.org>
Tue, 29 Mar 2005 20:03:06 +0000 (29 20:03 +0000)
committerJoerg Sonnenberger <joerg@dragonflybsd.org>
Tue, 29 Mar 2005 20:03:06 +0000 (29 20:03 +0000)
tree96353d6713826233791cea01d056ee289a3a713c
parent9d6f6b9d237d99f78d345f9630d586c641d0e68b
GNU getopt resets itself partially when the application sets optind to 0.
A good example in our tree is CVS. Copy this behaviour and put optind into
BSS.
lib/libc/stdlib/getopt.c