Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane2001-06-05 19:34:56 +0000
committerTom Lane2001-06-05 19:34:56 +0000
commitfb97d2b6bf03929ea70293fee37539e132ec8519 (patch)
tree7a3cbe1ccc7690e2c78fa87ce151e44da677b1f2 /src/backend/commands/remove.c
parentcdd230d62899455cc07ba1caf68387fb834d5bd2 (diff)
Correct permissions-checking bugs associated with ancient decision to
copy PUBLIC access rights into each newly created ACL entry. Instead treat each ACL entry as independent flags. Also clean up some ugliness in acl.h API.
Diffstat (limited to 'src/backend/commands/remove.c')
-rw-r--r--src/backend/commands/remove.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/backend/commands/remove.c b/src/backend/commands/remove.c
index da5ad74d8ba..48701a893a8 100644
--- a/src/backend/commands/remove.c
+++ b/src/backend/commands/remove.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/commands/Attic/remove.c,v 1.60 2001/03/22 03:59:23 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/commands/Attic/remove.c,v 1.61 2001/06/05 19:34:56 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -81,9 +81,7 @@ RemoveOperator(char *operatorName, /* operator name */
if (HeapTupleIsValid(tup))
{
- if (!pg_ownercheck(GetUserId(),
- (char *) ObjectIdGetDatum(tup->t_data->t_oid),
- OPEROID))
+ if (!pg_oper_ownercheck(GetUserId(), tup->t_data->t_oid))
elog(ERROR, "RemoveOperator: operator '%s': permission denied",
operatorName);