www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/05/13/14:23:40

X-Recipient: archive-cygwin AT delorie DOT 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 AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT 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 AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Why mkgroup does not list group members?
Message-ID: <20130513182319.GN8890@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <5F8AAC04F9616747BC4CC0E803D5907D0AF7961F AT MLBXv04 DOT nih DOT gov> <20130513175045 DOT GJ8890 AT calimero DOT vinschen DOT de> <5F8AAC04F9616747BC4CC0E803D5907D0AF7964F AT MLBXv04 DOT nih DOT gov> <20130513180639 DOT GM8890 AT calimero DOT vinschen DOT de> <5F8AAC04F9616747BC4CC0E803D5907D0AF7968A AT MLBXv04 DOT nih DOT gov>
MIME-Version: 1.0
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019