Author: nkinder
Update of /cvs/dirsec/ldapserver/ldap/servers/plugins/acl
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv9536/ldap/servers/plugins/acl
Modified Files:
acl.c
Log Message:
Resolves: 470918
Summary: Made replica_set_updatedn detect value add modify operations properly.
Index: acl.c
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/servers/plugins/acl/acl.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- acl.c 17 Oct 2008 22:12:46 -0000 1.12
+++ acl.c 13 Nov 2008 23:08:17 -0000 1.13
@@ -1428,14 +1428,14 @@
for ( i = 0; mod->mod_bvalues[i] != NULL; i++ ) {
- if ( ((mod->mod_op & ~LDAP_MOD_BVALUES) == LDAP_MOD_ADD) ||
- ((mod->mod_op & ~LDAP_MOD_BVALUES) == LDAP_MOD_REPLACE)) {
+ if (SLAPI_IS_MOD_ADD(mod->mod_op) ||
+ SLAPI_IS_MOD_REPLACE(mod->mod_op)) {
rv = acl_access_allowed (pb,e,
mod->mod_type,
mod->mod_bvalues[i],
ACLPB_SLAPI_ACL_WRITE_ADD); /*was SLAPI_ACL_WRITE*/
- } else if ((mod->mod_op & ~LDAP_MOD_BVALUES) == LDAP_MOD_DELETE) {
+ } else if (SLAPI_IS_MOD_DELETE(mod->mod_op)) {
rv = acl_access_allowed (pb,e,
mod->mod_type,
mod->mod_bvalues[i],
Show replies by date