From d501c6adee491009ce6ebde3581b6743937794f1 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Sun, 9 Jul 2000 21:02:44 +0000 Subject: * 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. --- winsup/cygwin/syscalls.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'winsup/cygwin/syscalls.cc') 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 -- cgit v1.1