diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2000-07-09 21:02:44 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2000-07-09 21:02:44 +0000 |
commit | d501c6adee491009ce6ebde3581b6743937794f1 (patch) | |
tree | 446af91c6cf1ac50427d7750d36bef56780afae7 /winsup/cygwin/syscalls.cc | |
parent | 5fc3f2d40a7b47d16860f026d2f9e86af93cb9f5 (diff) | |
download | newlib-d501c6adee491009ce6ebde3581b6743937794f1.zip newlib-d501c6adee491009ce6ebde3581b6743937794f1.tar.gz newlib-d501c6adee491009ce6ebde3581b6743937794f1.tar.bz2 |
* spawn.cc (spawn_guts): Close handle `hToken' only if it's not
copied from myself->token.
* syscalls.cc (seteuid): Replace CopySid by memcpy which is foolproof
here.
Diffstat (limited to 'winsup/cygwin/syscalls.cc')
-rw-r--r-- | winsup/cygwin/syscalls.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc index 9594a49..61479aa 100644 --- a/winsup/cygwin/syscalls.cc +++ b/winsup/cygwin/syscalls.cc @@ -1882,9 +1882,9 @@ seteuid (uid_t uid) } myself->uid = uid; strcpy (myself->username, pi.username); - CopySid (MAX_SID_LEN, myself->psid, pi.psid); strcpy (myself->logsrv, pi.logsrv); strcpy (myself->domain, pi.domain); + memcpy (myself->sidbuf, pi.sidbuf, MAX_SID_LEN); } } else |