Page MenuHome GnuPG

struct ucred usage needs ucred.h on Solaris
Closed, ResolvedPublic

Description

get_client_pid() uses struct ucred when HAVE_SO_PEERCRED is defined. This
struct definition is defined in ucred.h on Solaris. Attached patch includes
this header when ucred.h was found on the system.

Details

Version
2.1.19

Event Timeline

We should better fix that by adding a new API to libassuan so that we have that
code only once.

Thanks for the report.

Since this is for command-ssh.c, we can't change the protocol (the client is SSH
process, which doesn't use libassuan).
Here, the purpose of the code is getting PID of peer, so, we can do something
except FreeBSD.

I think that it is fixed in: f7f806afa5083617f4aba02fc3b285b06a7d73d4

Fix published in 2.1.20.