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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [PATCH] ident authentication fails on kFreeBSD/x86-64 due to wrong struct size
Дата
Msg-id 24047.1306692513@sss.pgh.pa.us
обсуждение исходный текст
Ответ на [PATCH] ident authentication fails on kFreeBSD/x86-64 due to wrong struct size  (Martin Pitt <mpitt@debian.org>)
Ответы Re: [PATCH] ident authentication fails on kFreeBSD/x86-64 due to wrong struct size
Список 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 по дате отправления:

Предыдущее
От: Emanuel Calvo
Дата:
Сообщение: Re: BUG #6045: Compilation of contribs fail
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [PATCH] ident authentication fails on kFreeBSD/x86-64 due to wrong struct size