Re: [PATCH] ident authentication fails on kFreeBSD/x86-64 due to wrong struct size - Mailing list pgsql-bugs

From Tom Lane
Subject Re: [PATCH] ident authentication fails on kFreeBSD/x86-64 due to wrong struct size
Date
Msg-id 24047.1306692513@sss.pgh.pa.us
Whole thread Raw
In response to [PATCH] ident authentication fails on kFreeBSD/x86-64 due to wrong struct size  (Martin Pitt <mpitt@debian.org>)
Responses Re: [PATCH] ident authentication fails on kFreeBSD/x86-64 due to wrong struct size
List pgsql-bugs
Martin Pitt <mpitt@debian.org> writes:
>      /* Compute size without padding */
> -    char        cmsgmem[ALIGN(sizeof(struct cmsghdr)) + ALIGN(sizeof(Cred))];    /* for NetBSD */
> +    char        cmsgmem[ALIGN(sizeof(struct cmsghdr)) + sizeof(Cred)];    /* for NetBSD */

Hm.  That code's been like that for a very long time (since 2001
according to the git history...).  How much confidence can we have
that this change won't result in breakage on other flavors of *BSD?

(I'm unable to test this myself, not having any platforms on which
this branch of auth_peer gets compiled...)

            regards, tom lane

pgsql-bugs by date:

Previous
From: Emanuel Calvo
Date:
Subject: Re: BUG #6045: Compilation of contribs fail
Next
From: Tom Lane
Date:
Subject: Re: [PATCH] ident authentication fails on kFreeBSD/x86-64 due to wrong struct size