1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-01-02 12:01:32 +01:00

Add call to GetNamedPipeClientProcessId for newer Windows.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2022-08-01 12:31:29 +09:00
parent c0a3748979
commit 6e5d70b648

View File

@ -2818,6 +2818,16 @@ win32_openssh_thread (void *arg)
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 ();
if (!ctrl->session_env)
{