Do not update pgpool_passwd if the password length is incorrect.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Mon, 27 Aug 2018 06:16:17 +0000 (15:16 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Mon, 27 Aug 2018 06:25:51 +0000 (15:25 +0900)
commit7db4027bddd0676ceb4c27d9ae5ecba72f8d2d2b
tree55d86261db536adfe3d282d74e6d5e5cda2ba2f0
parent3d7823c1f60d6d10ed61e75884caf8c9c1d4c70d
Do not update pgpool_passwd if the password length is incorrect.

For Pgpool-II 3.7 or before, the password stored in pool_passwd is MD5
password only.  So check the correctness of pool_passwd by scanning
entire file.

Patch created by Takuma Hoshiai. Minor error message tweak by me.
See bug425 for more details.
src/auth/pool_passwd.c