agent: Fix sending connecting process uid to pinentry.
authorNIIBE Yutaka <gniibe@fsij.org>
Fri, 26 Jan 2018 01:52:56 +0000 (10:52 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Fri, 26 Jan 2018 01:52:56 +0000 (10:52 +0900)
commit660eafa3a9f68e116e9b0597edc317d8ff90f9b2
treee7dbf0fb1c956d4760736e57a89701a1ba8a7b37
parentc2e69a7a8c4b21e125babd50e464e71e1535f173
agent: Fix sending connecting process uid to pinentry.

* agent/command-ssh.c (get_client_info): Use LOCAL_PEERCRED.

--

LOCAL_PEERUID was wrong (while there is LOCAL_PEERUUID).
For FreeBSD and macOS, we can use LOCAL_PEERCRED to get uid.

GnuPG-bug-id: 3757
Fixes-commit: 28aa6890588cc108639951bb4bef03ac17743046
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
agent/command-ssh.c