mirror of
git://git.gnupg.org/gnupg.git
synced 2025-05-24 16:43:28 +02:00
Add call to GetNamedPipeClientProcessId for newer Windows.
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
c0a3748979
commit
6e5d70b648
@ -2818,6 +2818,16 @@ win32_openssh_thread (void *arg)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if _WIN32_WINNT >= 0x600
|
||||||
|
if (!GetNamedPipeClientProcessId (pipe, &ctrl->client_pid))
|
||||||
|
log_info ("failed to get client process id: %ld\n", GetLastError ());
|
||||||
|
else
|
||||||
|
{
|
||||||
|
log_info ("PID: %ld\n", ctrl->client_pid);
|
||||||
|
ctrl->client_uid = -1;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
ctrl->session_env = session_env_new ();
|
ctrl->session_env = session_env_new ();
|
||||||
if (!ctrl->session_env)
|
if (!ctrl->session_env)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user