public inbox for [email protected]  
help / color / mirror / Atom feed
From: 刘进央 <[email protected]>
To: [email protected]
Subject: pg_enc
Date: Tue, 23 Sep 2025 14:49:40 +0800 (GMT+08:00)
Message-ID: <[email protected]> (raw)




Hi,




attatch is the patch for this issue, please help review it.




issue link is https://github.com/pgpool/pgpool2/issues/129




I have verified it, the result as below:

[root@test1 bin]# ./pg_enc -p -P

db password: 

encryption key: 







PtFXv5keNmBzsARTtJduzw==

pool_passwd string: AESPtFXv5keNmBzsARTtJduzw==

Attachments:

  [application/octet-stream] pg_enc.patch (316B, 3-pg_enc.patch)
  download | inline diff:
diff --git a/src/tools/pgenc/pg_enc.c b/src/tools/pgenc/pg_enc.c
index d548fd6..de5740c 100644
--- a/src/tools/pgenc/pg_enc.c
+++ b/src/tools/pgenc/pg_enc.c
@@ -246,6 +246,7 @@ main(int argc, char *argv[])
 			exit(EXIT_FAILURE);
 		}
 		stpncpy(enc_key, buf, sizeof(enc_key));
+		pool_key = enc_key;
 	}
 	else
 	{


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: pg_enc
  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