From fb97d2b6bf03929ea70293fee37539e132ec8519 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Tue, 5 Jun 2001 19:34:56 +0000 Subject: 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. --- src/backend/commands/remove.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/backend/commands/remove.c') 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); -- cgit v1.2.3