Subject: CVS commit: basesrc
To: None <source-changes@netbsd.org>
From: Jason R Thorpe <thorpej@netbsd.org>
List: source-changes
Date: 08/25/2000 20:17:43
Module Name:	basesrc
Committed By:	thorpej
Date:		Fri Aug 25 17:17:38 UTC 2000

Modified Files:
	basesrc/lib/libc/stdlib [netbsd-1-5]: getopt_long.c

Log Message:
Pull up rev. 1.8:
Some (popular) programs expect to be able to re-initialize `optind'
to 0 and have getopt(3)/getopt_long(3) continue to function properly.
This happens to work with GNU getopt_long(3), so mimmick the behavior.

Fixes pkg/10980 (Manuel Bouyer): rsyncd was relying on this behavior.


To generate a diff of this commit:
cvs rdiff -r1.6 -r1.6.2.1 basesrc/lib/libc/stdlib/getopt_long.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.