Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 025F7B5DC3D for ; Sun, 29 May 2011 15:11:24 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 96511-02-7 for ; Sun, 29 May 2011 18:11:16 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 7B44FB5DBF7 for ; Sun, 29 May 2011 15:08:38 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p4TI8Xcb024048; Sun, 29 May 2011 14:08:33 -0400 (EDT) To: Martin Pitt cc: PostgreSQL Bugs , Petr Salinger , 612888@bugs.debian.org Subject: Re: [PATCH] ident authentication fails on kFreeBSD/x86-64 due to wrong struct size In-reply-to: <20110522141921.GC3123@piware.de> References: <20110522141921.GC3123@piware.de> Comments: In-reply-to Martin Pitt message dated "Sun, 22 May 2011 16:19:21 +0200" Date: Sun, 29 May 2011 14:08:33 -0400 Message-ID: <24047.1306692513@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201105/219 X-Sequence-Number: 30358 Martin Pitt 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