public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
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()?
Date: Mon, 22 Jan 2007 15:40:00 -0000	[thread overview]
Message-ID: <20070122154045.GX27843@calimero.vinschen.de> (raw)
In-Reply-To: <loom.20070122T160919-481@post.gmane.org>

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/

  reply	other threads:[~2007-01-22 15:40 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-21 22:50 Mark A. Ziesemer
2007-01-22  9:34 ` Corinna Vinschen
2007-01-22 13:03   ` Eric Blake
2007-01-22 13:29     ` Corinna Vinschen
2007-01-22 15:23       ` Mark A. Ziesemer
2007-01-22 15:40         ` Corinna Vinschen [this message]
2007-01-23  1:15           ` "id -Gn" w/ username doesn't return all associated groups. Issue with getgrent()? Mark A. Ziesemer
2007-01-23  3:21             ` Eric Blake
2007-01-23 23:35               ` Mark A. Ziesemer
2007-01-24  1:24                 ` dmccunney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070122154045.GX27843@calimero.vinschen.de \
    --to=corinna-cygwin@cygwin.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).