This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: Avoiding /etc/passwd and /etc/group scans
- From: Christopher Faylor <cgf at redhat dot com>
- To: cygwin-patches at cygwin dot com
- Date: Mon, 21 Oct 2002 12:22:46 -0400
- Subject: Re: Avoiding /etc/passwd and /etc/group scans
- References: <3DB416E7.99E22851@ieee.org>
- Reply-to: cygwin-patches at cygwin dot com
On Mon, Oct 21, 2002 at 11:01:59AM -0400, Pierre A. Humblet wrote:
>Cygwin scans the passwd and group files to map sids
>to/from uid & gid. It does so even for the current user,
>although the relevant mappings are stored internally.
>This is inefficient and causes problems (e.g. gcc produces
>non executable files) as soon as /etc/passwd is incomplete.
It's only supposed to be doing this for the first cygwin process that
start up on a given console. Is that, again, no longer the case? It
seems like we keep drifting here. We shouldn't be incurring the
/etc/group and /etc/passwd startup costs even when ntsec isn't
available.
Anyway, I'll take a look at your patch later today, Pierre.
cgf