This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: initgroups


On Wed, Sep 11, 2002 at 09:17:56AM -0400, Pierre A. Humblet wrote:
> Corinna Vinschen wrote:
> 
> > > P.S.: Why is there a need to define ILLEGAL_GID? It
> > > is never used to set a value.
> > 
> > It's used in chown_worker() to check against gid -1 on input.
> 
> O.K, it's used to check against -1, but -1 is never used as
> a reserved value. In other words, why is the largest possible
> gid value forbidden? 

It's not forbidden in the first place, it has a special meaning
when used as parameter to chown(), see
http://www.opengroup.org/onlinepubs/007904975/functions/chown.html

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]