Subject: lib/25160: getsubopt.c duplicated in libc
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <dholland@eecs.harvard.edu>
List: netbsd-bugs
Date: 04/12/2004 18:00:28
>Number:         25160
>Category:       lib
>Synopsis:       There appear to be two copies of getsubopt.c in libc.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Apr 12 22:01:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     David A. Holland <dholland@eecs.harvard.edu>
>Release:        NetBSD 1.6ZG (20031215)
>Organization:
   - David A. Holland / dholland@eecs.harvard.edu
>Environment:
System: NetBSD alicante 1.6ZG NetBSD 1.6ZG (ALICANTE) #8: Wed Mar 17 18:47:39 EST 2004 dholland@alicante:/usr/src/sys/arch/i386/compile/ALICANTE i386
Architecture: i386
Machine: i386
>Description:

	src/lib/libc/gen/getsubopt.c and src/lib/libc/stdlib/getsubopt.c
	are slightly different copies of the same file.

	Both are listed in their respective subdirs' Makefile.inc, but
	because the makefile uses search paths for sources, make
	doesn't detect a conflict.

	It appears that the one in stdlib/ is the one that actually
	ends up being used.

	This was noticed in a tree from 20031215 (as noted above) but
	appears not to have been fixed in the interim.

>How-To-Repeat:
	n/a

>Fix:
	Merge the two copies and delete one...

>Release-Note:
>Audit-Trail:
>Unformatted: