Alloc_sd() fragile?

Robert Collins
Tue Mar 5 04:26:00 GMT 2002

> -----Original Message-----
> From: Corinna Vinschen [] 

> Just guessing.  One parameter to alloc_sd is a 
> PSECURITY_DESCRIPTOR called `sd_ret'.  This SD must be 
> initialized since it's used as in/out parameter.  Take a look 
> into set_security_attribute() and especially into 
> set_nt_attribute().  You will see what I mean.

Thank you!, that was it. It wasn't my bug however :[, as the CreateFile
is still failing, but the alloc_sd failures are gone (different sd's are

*sigh*. Something is tromping on a static class member and invalidating
the sd. Are sd's ever corrupted by system calls, or can one reuse an sd


More information about the Cygwin-developers mailing list