pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix portability failure introduced in commits d2b0b60e7 et al.
Date: Wed, 26 Dec 2018 20:30:58 +0000
Message-ID: <E1gcFpS-00082g-K8@gemulon.postgresql.org> (raw)

Fix portability failure introduced in commits d2b0b60e7 et al.

I made a frontend fprintf() format use %m, forgetting that that's only
safe in HEAD not the back branches; prior to 96bf88d52 and d6c55de1f,
it would work on glibc platforms but not elsewhere.  Revert to using
%s ... strerror(errno) as the code did before.

We could have left HEAD as-is, but for code consistency across branches,
I chose to apply this patch there too.

Per Coverity and a few buildfarm members.

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/811821748b5b833766444325c105b4bc25aac847

Modified Files
--------------
src/common/psprintf.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)



view thread (6+ messages)  latest in thread

Message-ID: <E1gcFpS-00082g-K8@gemulon.postgresql.org>
Permalink:  ../E1gcFpS-00082g-K8@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1gcFpS-00082g-K8@gemulon.postgresql.org

 · 

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-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Fix portability failure introduced in commits d2b0b60e7 et al.
  In-Reply-To: <E1gcFpS-00082g-K8@gemulon.postgresql.org>
  References: <E1gcFpS-00082g-K8@gemulon.postgresql.org>

* 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