pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Martin Pitt <mpitt@debian.org>
Cc: PostgreSQL Bugs <pgsql-bugs@postgresql.org>
Cc: Petr Salinger <Petr.Salinger@seznam.cz>
Cc: 612888@bugs.debian.org
Subject: Re: [PATCH] ident authentication fails on kFreeBSD/x86-64 due to wrong struct size
Date: Sun, 29 May 2011 14:08:33 -0400
Message-ID: <24047.1306692513@sss.pgh.pa.us> (raw)
In-Reply-To: <20110522141921.GC3123@piware.de>
References: <20110522141921.GC3123@piware.de>

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



view thread (3+ messages)  latest in thread

Message-ID: <24047.1306692513@sss.pgh.pa.us>
Permalink:  ../24047.1306692513@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/24047.1306692513@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, mpitt@debian.org, Petr.Salinger@seznam.cz, 612888@bugs.debian.org
  Subject: Re: [PATCH] ident authentication fails on kFreeBSD/x86-64 due to wrong struct size
  In-Reply-To: <24047.1306692513@sss.pgh.pa.us>
  References: <20110522141921.GC3123@piware.de> <24047.1306692513@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox