setregid() and setreuid() implementation proposal

Pierre A. Humblet Pierre.Humblet@ieee.org
Wed Jan 22 14:54:00 GMT 2003


Corinna Vinschen wrote:
>
> > But it's not *that* simple:
> >
> > - sec_acl.cc is still using __aclent16_t instead of __aclent32_t.

Those two structures have the same size and the same field offsets.
Would you thumb your nose at a conversion of the style

whatever 
aclXXX( __aclent16_t * acl)
{
  __aclent32_t * acl32 = acl;
  acl32->a_id &= 0x0000FFFF;
  return (whatever) aclXXX32(acl32);
}
or would you insist on alloc and copying of everything
before and after calling the aclXXX32 function?
 
> Ooops!  Another really *really* big problem:  struct stat is using
> uids and gids as well.  Using 32 bit ids with 32 bit offset stuff
> would require to introduce a new struct __stat32_2 plus access
> functions.  We would have to support three variations of struct
> stat then :-(((

:-(((

Pierre



More information about the Cygwin-developers mailing list