<div dir="ltr">Hi<div><br></div>Thanks Hoshiai, for the patch.<div>Since we haven&#39;t got the decision on the pool_passwd file descriptor  retention,</div><div>So I have committed your patch fwith some modifications.<div><br></div><div>Thanks</div><div>Best Regards</div><div>Muhammad Usama<br><div><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Oct 26, 2018 at 12:43 PM Takuma Hoshiai &lt;<a href="mailto:hoshiai@sraoss.co.jp">hoshiai@sraoss.co.jp</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
Just I created a patch about bug419 too, so will share it.<br>
<br>
I understand that pool_passwd allow plain password with Pgpool-II 4.0. So I think to need some string buffer length changed.<br>
<br>
For your reference.<br>
<br>
Best Regards.<br>
<br>
On Thu, 25 Oct 2018 19:38:06 +0500<br>
Muhammad Usama &lt;<a href="mailto:m.usama@gmail.com" target="_blank">m.usama@gmail.com</a>&gt; wrote:<br>
<br>
&gt; Hi<br>
&gt; <br>
&gt; Please find the attached patch to fix the pool_passwd file corruption issue<br>
&gt; pointed out by Jesper.<br>
&gt; Along with the corruption fix I have also made some changes to how<br>
&gt; pool_passwd file is read, previously<br>
&gt; we used to open this file at the startup time and keep the file descriptor<br>
&gt; opened for the whole lifecycle.<br>
&gt; Now with this patch I have modified this behaviour and the pool_passwd is<br>
&gt; only opened when it is needed and<br>
&gt; closed afterwards.<br>
&gt; <br>
&gt; Am I missing something obvious here or do you agree with this change.<br>
&gt; <br>
&gt; Thanks<br>
&gt; Best Regards<br>
&gt; Muhammad Usama<br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; On Mon, Oct 22, 2018 at 8:41 AM Bo Peng &lt;<a href="mailto:pengbo@sraoss.co.jp" target="_blank">pengbo@sraoss.co.jp</a>&gt; wrote:<br>
&gt; <br>
&gt; &gt; Hi Jesper,<br>
&gt; &gt;<br>
&gt; &gt; Thank you for reporting this issue.<br>
&gt; &gt; We will fix it.<br>
&gt; &gt;<br>
&gt; &gt; On Fri, 19 Oct 2018 07:08:51 -0400<br>
&gt; &gt; Jesper Pedersen &lt;<a href="mailto:jesper.pedersen@redhat.com" target="_blank">jesper.pedersen@redhat.com</a>&gt; wrote:<br>
&gt; &gt;<br>
&gt; &gt; &gt; Hi,<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; On 10/3/18 10:36 AM, Tatsuo Ishii wrote:<br>
&gt; &gt; &gt; &gt;&gt; On 8/24/18 7:46 AM, Jesper Pedersen wrote:<br>
&gt; &gt; &gt; &gt;&gt;&gt;&gt; Please add items if I missed something.<br>
&gt; &gt; &gt; &gt;&gt;&gt; 7) 0000419: pg_md5: -m removes users<br>
&gt; &gt; &gt; &gt;&gt;&gt;      - <a href="https://www.pgpool.net/mantisbt/view.php?id=419" rel="noreferrer" target="_blank">https://www.pgpool.net/mantisbt/view.php?id=419</a><br>
&gt; &gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt; &gt;&gt; This will make its way into 4.0.0, correct ?<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; I believe so. Please let me know if you find any problem with pg_md5.<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; So, this made its way into 4.0.0 which will corrupt pool_passwd;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; pg_md5 -f conf/pgpool.conf -u user1 -m user1<br>
&gt; &gt; &gt; pg_md5 -f conf/pgpool.conf -u user2 -m user2<br>
&gt; &gt; &gt; pg_md5 -f conf/pgpool.conf -u user3 -m user3<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; cat conf/pgpool.conf<br>
&gt; &gt; &gt; user1:md57d1b5a4329b6478e976508ab9a49ee3d<br>
&gt; &gt; &gt; user2:md572881e285cdb0f9370dcdf1db0d9a869<br>
&gt; &gt; &gt; user3:md516bd93afc66e593f3aeedecdf1201ee6<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; pg_enc -f conf/pgpool.conf -u user1 -m user1<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; cat conf/pgpool.conf<br>
&gt; &gt; &gt; user1:AES1MLVcB4ex/cCqL24k1H8wQ==<br>
&gt; &gt; &gt; a49ee3d<br>
&gt; &gt; &gt; user2:md572881e285cdb0f9370dcdf1db0d9a869<br>
&gt; &gt; &gt; user3:md516bd93afc66e593f3aeedecdf1201ee6<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; pg_enc -f conf/pgpool.conf -u user2 -m user2<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; cat conf/pgpool.conf<br>
&gt; &gt; &gt; user1:AES1MLVcB4ex/cCqL24k1H8wQ==<br>
&gt; &gt; &gt; a49ee3d<br>
&gt; &gt; &gt; user2:md572881e285cdb0f9370dcdf1db0d9a869<br>
&gt; &gt; &gt; user3:md516bd93afc66e593f3aeedecdf1201ee6<br>
&gt; &gt; &gt; user2:AESFndsqgtIUnJSEr0yn1cTQA==<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Pending patches:<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; <a href="http://www.sraoss.jp/pipermail/pgpool-hackers/2018-August/002955.html" rel="noreferrer" target="_blank">http://www.sraoss.jp/pipermail/pgpool-hackers/2018-August/002955.html</a><br>
&gt; &gt; &gt; <a href="http://www.sraoss.jp/pipermail/pgpool-hackers/2018-August/003017.html" rel="noreferrer" target="_blank">http://www.sraoss.jp/pipermail/pgpool-hackers/2018-August/003017.html</a><br>
&gt; &gt; &gt; <a href="http://www.sraoss.jp/pipermail/pgpool-hackers/2018-August/003025.html" rel="noreferrer" target="_blank">http://www.sraoss.jp/pipermail/pgpool-hackers/2018-August/003025.html</a><br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Best regards,<br>
&gt; &gt; &gt;   Jesper<br>
&gt; &gt; &gt; _______________________________________________<br>
&gt; &gt; &gt; pgpool-hackers mailing list<br>
&gt; &gt; &gt; <a href="mailto:pgpool-hackers@pgpool.net" target="_blank">pgpool-hackers@pgpool.net</a><br>
&gt; &gt; &gt; <a href="http://www.pgpool.net/mailman/listinfo/pgpool-hackers" rel="noreferrer" target="_blank">http://www.pgpool.net/mailman/listinfo/pgpool-hackers</a><br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; Bo Peng &lt;<a href="mailto:pengbo@sraoss.co.jp" target="_blank">pengbo@sraoss.co.jp</a>&gt;<br>
&gt; &gt; SRA OSS, Inc. Japan<br>
&gt; &gt;<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; pgpool-hackers mailing list<br>
&gt; &gt; <a href="mailto:pgpool-hackers@pgpool.net" target="_blank">pgpool-hackers@pgpool.net</a><br>
&gt; &gt; <a href="http://www.pgpool.net/mailman/listinfo/pgpool-hackers" rel="noreferrer" target="_blank">http://www.pgpool.net/mailman/listinfo/pgpool-hackers</a><br>
&gt; &gt;<br>
<br>
<br>
-- <br>
Takuma Hoshiai &lt;<a href="mailto:hoshiai@sraoss.co.jp" target="_blank">hoshiai@sraoss.co.jp</a>&gt;<br>
</blockquote></div>