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:05:49
Module Name:	basesrc
Committed By:	thorpej
Date:		Fri Aug 25 17:05:49 UTC 2000

Modified Files:
	basesrc/lib/libc/stdlib: getopt_long.c

Log Message:
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.7 -r1.8 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.