Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
a03dc605
Commit
a03dc605
authored
Apr 03, 1997
by
Marc G. Fournier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove code associated with !ACLGROUP_PATCH, and appropriate #ifdef's
parent
e3649e9e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
24 deletions
+1
-24
src/backend/tcop/aclchk.c
src/backend/tcop/aclchk.c
+1
-13
src/include/config.h.in
src/include/config.h.in
+0
-11
No files found.
src/backend/tcop/aclchk.c
View file @
a03dc605
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/tcop/Attic/aclchk.c,v 1.
8 1997/04/03 19:55:12
scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/tcop/Attic/aclchk.c,v 1.
9 1997/04/03 21:31:47
scrappy Exp $
*
*
* NOTES
* NOTES
* See acl.h.
* See acl.h.
...
@@ -300,22 +300,10 @@ aclcheck(Acl *acl, AclId id, AclIdType idtype, AclMode mode)
...
@@ -300,22 +300,10 @@ aclcheck(Acl *acl, AclId id, AclIdType idtype, AclMode mode)
i
<
num
&&
aip
->
ai_idtype
==
ACL_IDTYPE_GID
;
i
<
num
&&
aip
->
ai_idtype
==
ACL_IDTYPE_GID
;
++
i
,
++
aip
)
{
++
i
,
++
aip
)
{
if
(
in_group
(
id
,
aip
->
ai_id
))
{
if
(
in_group
(
id
,
aip
->
ai_id
))
{
#ifdef ACLGROUP_PATCH
if
(
aip
->
ai_mode
&
mode
)
{
if
(
aip
->
ai_mode
&
mode
)
{
found_group
=
1
;
found_group
=
1
;
break
;
break
;
}
}
#else
if
(
aip
->
ai_mode
&
mode
)
++
found_group
;
else
{
#ifdef ACLDEBUG_TRACE
elog
(
DEBUG
,
"aclcheck: found %d/%d"
,
aip
->
ai_id
,
aip
->
ai_mode
);
#endif
return
ACLCHECK_NO_PRIV
;
}
#endif
}
}
}
}
if
(
found_group
)
{
if
(
found_group
)
{
...
...
src/include/config.h.in
View file @
a03dc605
...
@@ -113,17 +113,6 @@
...
@@ -113,17 +113,6 @@
#include "os.h"
#include "os.h"
/* This patch changes the behavior of aclcheck for groups. Currently an user
* can access a table only if he has the required permission for ALL the groups
* defined for that table. With my patch he can access a table if he has the
* permission for ONE of the groups, which seems to me a more useful thing.
*
* Used in: src/backend/tcop/aclchk.c
* Submitted by: Massimo Dal Zotto <dz@cs.unitn.it>
*/
#define ACLGROUP_PATCH
/*
/*
* The following is used as the arg list for signal handlers. Any ports
* The following is used as the arg list for signal handlers. Any ports
* that take something other than an int argument should change this in
* that take something other than an int argument should change this in
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment