X-Spam-Check-By: sourceware.org
Date: Mon, 22 Jan 2007 16:40:45 +0100
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: "id -Gn" w/ username doesn't return all associated groups.  Issue with getgrent()?
Message-ID: <20070122154045.GX27843@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <001a01c73dae$7dec4af0$6152a8c0@ziesemermark> <20070122093419.GR27843@calimero.vinschen.de> <45B4B622.9040406@byu.net> <20070122132934.GU27843@calimero.vinschen.de> <loom.20070122T160919-481@post.gmane.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <loom.20070122T160919-481@post.gmane.org>
User-Agent: Mutt/1.4.2.2i
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@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

On Jan 22 15:18, Mark A. Ziesemer wrote:
> Since Cygwin already lets the underlying OS take care of much of the
> security (handling passwords, etc.), can't Cygwin just ask Windows for the
> user's groups when needed, to?

How?  Consider that getgrent just enumerates /etc/group.  It doesn't
know for what purpose the calling application does it.  I don't think it
makes a lot of sense to call a OS function for each getgrent call to
fill out the gr_mem field on the fly.

Having said that, I don't intend to change this behaviour myself.
However, I'm certainly not averse to patches to Cygwin which add this
behaviour, as long as it's not getting too slow by this.


Corinna


P.S.: How did the subject disappear?!?


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

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

