This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: get rid of getpwent? (Was: cygwin-1.7.28 getpwent header declaration changes ?)
- From: Warren Young <warren at etr-usa dot com>
- To: Cygwin-L <cygwin at cygwin dot com>
- Date: Tue, 11 Feb 2014 17:06:13 -0700
- Subject: Re: get rid of getpwent? (Was: cygwin-1.7.28 getpwent header declaration changes ?)
- Authentication-results: sourceware.org; auth=none
- References: <52F339CA dot 5070305 at gmail dot com> <20140206090117 dot GD2821 at calimero dot vinschen dot de> <52F361C5 dot 3000807 at gmail dot com> <20140206141321 dot GI2821 at calimero dot vinschen dot de> <52F40208 dot 5030901 at etr-usa dot com> <20140207094917 dot GN2821 at calimero dot vinschen dot de> <52F4E540 dot 2010606 at tiscali dot co dot uk> <52F51D19 dot 6080807 at etr-usa dot com> <31347914-BB4F-4039-984B-731B6C72F903 at etr-usa dot com> <52F7AEC5 dot 5090205 at tiscali dot co dot uk> <8B7B5FE0-7413-4358-BA8A-E0B6E0B17653 at etr-usa dot com> <52F8B50E dot 7040307 at lysator dot liu dot se> <52F92D58 dot 9030408 at etr-usa dot com> <52F95D1D dot 4050108 at tiscali dot co dot uk> <4510121021 dot 20140211062515 at mtu-net dot ru> <52FAB14C dot 8060800 at tiscali dot co dot uk>
On 2/11/2014 16:25, David Stacey wrote:
getpwent() is called in three different places.
To those of you who have investigated these code paths: do any of them
look like they couldn't be replaced by getpwnam() or other calls that
would let cygwin1.dll do single-record AD/SAM lookups, rather than
whole-table/tree scans?
That is, do any of these programs really need to visit every record in
/etc/passwd?
problem was an assumption made in the 'checkfile' perl script: it was
assumed that cygwin1.dll is the first DLL listed by objdump.
Details, details. :)
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple