"id -Gn" w/ username doesn't return all associated groups. Issue with getgrent()?

Corinna Vinschen corinna-cygwin@cygwin.com
Mon Jan 22 15:40:00 GMT 2007


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/



More information about the Cygwin mailing list