agora inbox for pgpool-committers@postgresql.org  
help / color / mirror / Atom feed
pgpool: Fix safer directory deletion in Bash in recovery_1st_stage.samp
2+ messages / 1 participants
[nested] [flat]

* pgpool: Fix safer directory deletion in Bash in recovery_1st_stage.samp
@ 2025-09-10 06:26  Taiki Koshino <koshino@sraoss.co.jp>
  0 siblings, 0 replies; 2+ messages in thread

From: Taiki Koshino @ 2025-09-10 06:26 UTC (permalink / raw)
  To: pgpool-committers@lists.postgresql.org

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(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgpool: Fix safer directory deletion in Bash in recovery_1st_stage.samp
@ 2025-09-10 06:28  Taiki Koshino <koshino@sraoss.co.jp>
  0 siblings, 0 replies; 2+ messages in thread

From: Taiki Koshino @ 2025-09-10 06:28 UTC (permalink / raw)
  To: pgpool-committers@lists.postgresql.org

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
------
master

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

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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2025-09-10 06:28 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2025-09-10 06:26 pgpool: Fix safer directory deletion in Bash in recovery_1st_stage.samp Taiki Koshino <koshino@sraoss.co.jp>
2025-09-10 06:28 pgpool: Fix safer directory deletion in Bash in recovery_1st_stage.samp Taiki Koshino <koshino@sraoss.co.jp>

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