From: Tatsuo Ishii <ishii@postgresql.org>
To: pgpool-committers@lists.postgresql.org
Subject: pgpool: Fix to use snprintf() instead of strlcpy() in pgproto.
Date: Mon, 09 Nov 2026 01:47:05 +0000
Message-ID: <E1xQETR-0000000G4R2-2bu2@gothos.postgresql.org> (raw)
Fix to use snprintf() instead of strlcpy() in pgproto.
Commit 1f40c4fe7 modified pgproto to use strlcpy() to generate the v2
protocol startup packet. Unfortunately strlcpy() is only available in
glibc 2.38 or after, which is provided by Red Hat 10 or newer. Thus
Red Hat 8 or 9 failed to build pgproto.
This commit replaces strlcpy() with snprintf().
Author: Tatsuo Ishii <ishii@postgresql.org>
Backpatch-through: master only
Branch
------
master
Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=178b06ff37b6e61587fb16d2088bb06cbe182...
Modified Files
--------------
src/tools/pgproto/main.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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: pgpool-committers@postgresql.org
Cc: ishii@postgresql.org
Subject: Re: pgpool: Fix to use snprintf() instead of strlcpy() in pgproto.
In-Reply-To: <E1xQETR-0000000G4R2-2bu2@gothos.postgresql.org>
References: <E1xQETR-0000000G4R2-2bu2@gothos.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