X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:to:subject:message-id:reply-to
	:references:mime-version:content-type:in-reply-to; q=dns; s=
	default; b=VcYoKowZXgmu25MTb1p3ACG1xpB7RMxJJz65/A0QFzuPniNPdz0ft
	0QBX38/B2MgzrGmHTQFWMX/Ys/cMa1vZpaeO3GLhBZc6V6uCHEs1G74elEdN/JBO
	n73nzarpUbG3VI3Lw+9gxJ+sQkaL1pbJD73OCpFbndF75oHoDR6Qx0=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:to:subject:message-id:reply-to
	:references:mime-version:content-type:in-reply-to; s=default;
	 bh=zVchem3bgGP2B/A0oMBQFGLLciw=; b=Ni6vPoLk/mBOJlAQ1L8oFxsoLGJ3
	ts+/JWRmTmXmfyQ8A2AHJWAB4anTlcTPdwfOAxZZ9nCSOQYdiNPJDeA+FC2PjoWH
	8R1DeAKxfbrt/Im0svibxHM0RgyUZaAvOLVJA/ZDVMM7V5Gim0UNPzKlwvUJAgpc
	O6n0aChP6XbSzso=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,TW_MK autolearn=ham version=3.3.1
Date: Mon, 13 May 2013 20:23:19 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Why mkgroup does not list group members?
Message-ID: <20130513182319.GN8890@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <5F8AAC04F9616747BC4CC0E803D5907D0AF7961F@MLBXv04.nih.gov> <20130513175045.GJ8890@calimero.vinschen.de> <5F8AAC04F9616747BC4CC0E803D5907D0AF7964F@MLBXv04.nih.gov> <20130513180639.GM8890@calimero.vinschen.de> <5F8AAC04F9616747BC4CC0E803D5907D0AF7968A@MLBXv04.nih.gov>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <5F8AAC04F9616747BC4CC0E803D5907D0AF7968A@MLBXv04.nih.gov>
User-Agent: Mutt/1.5.21 (2010-09-15)

On May 13 18:17, Lavrentiev, Anton (NIH/NLM/NCBI) [C] wrote:
> I may have put it a bit incorrectly,
> 
> > In that case, your expectations of the getgrXXX functions are wrong.
> 
> but I don't think so.  I am looking if a user belongs to a group,
> either as their primary or secondary one.  So when using getgrXXX()
> I check to see if a user (whose primary, passwd-supplied, gid does not
> match the gid of the group) is listed as a member.  In CYGWIN that does
> not work because the information is missing from the group file.

Then use Windows functions to fetch the information.  This is still
better than to add all users to all groups they belong to.  The
passwd/group information is kept in memory.  I'm shuddering to think of
the memory requirements if all gr_mem fields are filled in a bigger
company.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--
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

