]> granicus.if.org Git - postgresql/commit
Disregard superuserness when checking to see if a role GRANT would
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 4 Nov 2005 17:25:15 +0000 (17:25 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 4 Nov 2005 17:25:15 +0000 (17:25 +0000)
commitc3d8de0907b53e3ce8988c71181edb6bcecd5aa6
treea1042b32888fa0bd6486d3fd6c00fa5e5a317ef2
parente47ea0566c58e9a7f3a592e9f44d57c4a1823447
Disregard superuserness when checking to see if a role GRANT would
create circularity of role memberships.  This is a minimum-impact fix
for the problem reported by Florian Pflug.  I thought about removing
the superuser_arg test from is_member_of_role() altogether, as it seems
redundant for many of the callers --- but not all, and it's way too late
in the 8.1 cycle to be making large changes.  Perhaps reconsider this
later.
src/backend/commands/user.c
src/backend/utils/adt/acl.c
src/include/utils/acl.h