~kennylevinsen/seatd

5ad91ae9dad205331ede6579b2b24b53e02a6287 — Jan Beich 27 days ago 0d855a2
client: enable cr_pid on FreeBSD >= 12.3

https://cgit.freebsd.org/src/commit/?id=925f44f33862908f9a2e72520a17af148c7d0db5
https://cgit.freebsd.org/src/commit/?id=2b61bda2c75f30f6eadd18fb891fd885e4c8d19d
1 files changed, 1 insertions(+), 1 deletions(-)

M seatd/client.c
M seatd/client.c => seatd/client.c +1 -1
@@ 40,7 40,7 @@ static int get_peer(int fd, pid_t *pid, uid_t *uid, gid_t *gid) {
	if (getsockopt(fd, 0, LOCAL_PEERCRED, &cred, &len) == -1) {
		return -1;
	}
#if __FreeBSD_version >= 1300030
#if __FreeBSD_version >= 1300030 || (__FreeBSD_version >= 1202506 && __FreeBSD_version < 1300000)
	*pid = cred.cr_pid;
#else
	*pid = -1;