pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix handling of previous password hooks in passwordcheck
Date: Thu, 01 Aug 2019 00:39:23 +0000
Message-ID: <E1hsz7r-0001Dp-Je@gemulon.postgresql.org> (raw)

Fix handling of previous password hooks in passwordcheck

When piling up loading of modules using check_password_hook_type,
loading passwordcheck would remove any trace of a previously-loaded
hook.  Unloading the module would also cause previous hooks to be
entirely gone.

Reported-by: Rafael Castro
Author: Michael Paquier
Reviewed-by: Daniel Gustafsson
Discussion: https://postgr.es/m/15932-78f48f9ef166778c@postgresql.org
Backpatch-through: 9.4

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/cb007441789dc19d40b4ae8902e0108b75811f00

Modified Files
--------------
contrib/passwordcheck/passwordcheck.c | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)



view thread (7+ messages)  latest in thread

Message-ID: <E1hsz7r-0001Dp-Je@gemulon.postgresql.org>
Permalink:  ../E1hsz7r-0001Dp-Je@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1hsz7r-0001Dp-Je@gemulon.postgresql.org

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: michael@paquier.xyz
  Subject: Re: pgsql: Fix handling of previous password hooks in passwordcheck
  In-Reply-To: <E1hsz7r-0001Dp-Je@gemulon.postgresql.org>
  References: <E1hsz7r-0001Dp-Je@gemulon.postgresql.org>

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

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