]> granicus.if.org Git - postgresql/commit
Fix portability failure introduced in commits d2b0b60e7 et al.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 26 Dec 2018 20:30:10 +0000 (15:30 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 26 Dec 2018 20:30:30 +0000 (15:30 -0500)
commit811821748b5b833766444325c105b4bc25aac847
tree8f2c7471cf2a80bc1441772cd7840ec38e774962
parent9378701243b5a9075a5c0e11909cb3eec7428801
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.
src/common/psprintf.c