* select.cc (allocfd_set): Zero allocated fd_set.
(cygwin_select): Move fd_set copying logic from ::wait to here. Use common return through sell.poll. (select_stuff::wait): Just return success or failure and let caller fill in fd_set. * pinfo.h (pinfo): Eliminate self-referential pointer to sidbuf since pinfo structure exists at random locations now. * fork.cc (fork): Use 'use_psid' element to control when the psid is relevant. * shared.cc (sec_user): Ditto. * spawn.cc (spawn_guts): Ditto. * uinfo.cc (internal_getlogin): Ditto. * syscall.cc (seteuid): Ditto. Set use_psid element.
This commit is contained in:
@ -212,7 +212,7 @@ sec_user (PVOID sa_buf, PSID sid2, BOOL inherit)
|
||||
char sid_buf[MAX_SID_LEN];
|
||||
PSID sid = (PSID) sid_buf;
|
||||
|
||||
if (myself->psid)
|
||||
if (myself->use_psid)
|
||||
CopySid (MAX_SID_LEN, sid, myself->psid);
|
||||
else if (! lookup_name (getlogin (), myself->logsrv, sid))
|
||||
return inherit ? &sec_none_nih : &sec_none;
|
||||
|
Reference in New Issue
Block a user