diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2012-08-23 17:25:10 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2012-08-23 17:25:10 -0400 |
commit | ec8a0135c3228087761ad3cdba18aebb01c7e17a (patch) | |
tree | 0ed9a0404c21b67555641e4796ab329c1066bb23 /src/backend/commands/variable.c | |
parent | 8b6b50a34dea0852511094405f0298d78c3b43fe (diff) | |
download | postgresql-ec8a0135c3228087761ad3cdba18aebb01c7e17a.tar.gz postgresql-ec8a0135c3228087761ad3cdba18aebb01c7e17a.zip |
Fix cascading privilege revoke to notice when privileges are still held.
If we revoke a grant option from some role X, but X still holds the option
via another grant, we should not recursively revoke the privilege from
role(s) Y that X had granted it to. This was supposedly fixed as one
aspect of commit 4b2dafcc0b1a579ef5daaa2728223006d1ff98e9, but I must not
have tested it, because in fact that code never worked: it forgot to shift
the grant-option bits back over when masking the bits being revoked.
Per bug #6728 from Daniel German. Back-patch to all active branches,
since this has been wrong since 8.0.
Diffstat (limited to 'src/backend/commands/variable.c')
0 files changed, 0 insertions, 0 deletions