]> granicus.if.org Git - postgresql/commitdiff
Remove code associated with !ACLGROUP_PATCH, and appropriate #ifdef's
authorMarc G. Fournier <scrappy@hub.org>
Thu, 3 Apr 1997 21:31:57 +0000 (21:31 +0000)
committerMarc G. Fournier <scrappy@hub.org>
Thu, 3 Apr 1997 21:31:57 +0000 (21:31 +0000)
src/backend/tcop/aclchk.c
src/include/config.h.in

index 7ca6bdd33b8a75cd16b5e3c102396d636a20d7d8..a60794af085d50e491b9448712ae1be7e02483fa 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * 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
  *    See acl.h.
@@ -300,22 +300,10 @@ aclcheck(Acl *acl, AclId id, AclIdType idtype, AclMode mode)
             i < num && aip->ai_idtype == ACL_IDTYPE_GID;
             ++i, ++aip) {
            if (in_group(id, aip->ai_id)) {
-#ifdef ACLGROUP_PATCH
                if (aip->ai_mode & mode) {
                    found_group = 1;
                     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) {
index 8ee3faee34aa10a1f56faea19174e7a270a41843..7794fca3f8609be3c2e54b7882ddb4187a977fa9 100644 (file)
 
 #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
  * that take something other than an int argument should change this in