diff options
author | Christopher Faylor <me@cgf.cx> | 2000-08-09 02:33:47 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-08-09 02:33:47 +0000 |
commit | 0072fdab860eb12ab2a454860a8c25ade253de6c (patch) | |
tree | fa970886fb81871f5714dbe2734ba91e40a7740a /winsup/cygwin/syscalls.cc | |
parent | c51a2a8ba4b5d7fa3831303f2bf8611d23b52765 (diff) | |
download | cygnal-0072fdab860eb12ab2a454860a8c25ade253de6c.tar.gz cygnal-0072fdab860eb12ab2a454860a8c25ade253de6c.tar.bz2 cygnal-0072fdab860eb12ab2a454860a8c25ade253de6c.zip |
* 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.
Diffstat (limited to 'winsup/cygwin/syscalls.cc')
-rw-r--r-- | winsup/cygwin/syscalls.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc index 5698a9b72..e4a705c2d 100644 --- a/winsup/cygwin/syscalls.cc +++ b/winsup/cygwin/syscalls.cc @@ -1865,7 +1865,6 @@ seteuid (uid_t uid) } struct _pinfo pi; - pi.psid = (PSID) pi.sidbuf; /* pi.token is used in internal_getlogin() to determine if impersonation is active. If so, the token is used for retrieving user's SID. */ @@ -1884,7 +1883,8 @@ seteuid (uid_t uid) strcpy (myself->username, pi.username); strcpy (myself->logsrv, pi.logsrv); strcpy (myself->domain, pi.domain); - memcpy (myself->sidbuf, pi.sidbuf, MAX_SID_LEN); + memcpy (myself->psid, pi.psid, MAX_SID_LEN); + myself->use_psid = 1; } } else |