Security patches

Pierre A. Humblet
Wed May 8 06:53:00 GMT 2002

Corinna Vinschen wrote:
> We should get that SID easily:
>   cygsid sid;
>   sid.getfrompw (getpwuid (cygheap->user.orig_uid));

That's a nice looking statement but behind it we are
searching the whole passwd file (*)
Also it seems that the rest of Cygwin gets SIDs directly from 
Windows and not from the less reliable passwd (which may not 
exist), whenever practical.
Do you wish to use this method anyway or do you have another


(*) search_for() could be optimized to cache the most likely 

More information about the Cygwin-patches mailing list