public inbox for [email protected]  
help / color / mirror / Atom feed
From: Taiki Koshino <[email protected]>
To: [email protected]
Subject: pgpool: Fix safer directory deletion in Bash in recovery_1st_stage.samp
Date: Wed, 10 Sep 2025 06:26:43 +0000
Message-ID: <[email protected]> (raw)

Fix safer directory deletion in Bash in recovery_1st_stage.sample.

Quote variables in rm commands to avoid accidental deletion:
rm -rf "${DEST_NODE_PGDATA}"

If the variable is empty, rm could delete unexpected files or directories.

Branch
------
V4_6_STABLE

Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=0a6868d40bcd3f7b91dfae2fd7bd73339aeee...

Modified Files
--------------
src/sample/scripts/recovery_1st_stage.sample | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)



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 using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: pgpool: Fix safer directory deletion in Bash in recovery_1st_stage.samp
  In-Reply-To: <[email protected]>

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

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