Avoiding /etc/passwd and /etc/group scans

Christopher Faylor cgf@redhat.com
Mon Oct 21 09:21:00 GMT 2002

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

Anyway, I'll take a look at your patch later today, Pierre.


More information about the Cygwin-patches mailing list