[Fedora-directory-commits] ldapserver/ldap/servers/slapd/back-ldbm dblayer.c, 1.35, 1.36
Richard Allen Megginson
rmeggins at fedoraproject.org
Fri Jan 9 21:30:59 UTC 2009
- Previous message (by thread): [Fedora-directory-commits] ldapserver/ldap/servers/slapd add.c, 1.18, 1.19 modutil.c, 1.7, 1.8 slapi-plugin.h, 1.36, 1.37 util.c, 1.25, 1.26
- Next message (by thread): [Fedora-directory-commits] ldapserver/ldap/servers/slapd/back-ldbm filterindex.c, 1.8, 1.9
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: rmeggins
Update of /cvs/dirsec/ldapserver/ldap/servers/slapd/back-ldbm
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv8842/ldapserver/ldap/servers/slapd/back-ldbm
Modified Files:
dblayer.c
Log Message:
Resolves: bug 471068
Bug Description: winsync doesn't recognize some changes
Reviewed by: nkinder (Thanks!)
Fix Description: Before sending updates to AD, first check to see if the updates still apply. For modify/add operations, check to make sure the value to add doesn't exist. If it does, remove it from the list of values in the mod. If all values are removed, then just skip the modify/add op altogether. For modify/del ops, check to see if the attribute exists. If not, just skip the op. If it does exist, check to see if the values exist, and remove the values from the mod/del op that do not exist anymore. If all values have been removed, just skip the mod/del op.
I added a new slapi function - slapi_mod_init_valueset_byval - which will init a Slapi_Mod and init the list of values using a valueset. Fortunately there was already a function for converting a Slapi_Value** to a berval**.
I also fixed a few compiler warnings.
Platforms tested: RHEL5
Flag Day: no
Doc impact: yes - add new function to slapi docs
Index: dblayer.c
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/servers/slapd/back-ldbm/dblayer.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -r1.35 -r1.36
--- dblayer.c 12 Dec 2008 21:09:31 -0000 1.35
+++ dblayer.c 9 Jan 2009 21:30:56 -0000 1.36
@@ -3884,7 +3884,7 @@
* are silently converted to the equivalent unsigned long int value.
*/
/* We don't want to make it happen. */
- for (p = str; p && *p && (*p == ' ' || *p == '\t'); p++) ;
+ for (p = (char *)str; p && *p && (*p == ' ' || *p == '\t'); p++) ;
if ('-' == *p) {
if (err) *err = ERANGE;
return val;
- Previous message (by thread): [Fedora-directory-commits] ldapserver/ldap/servers/slapd add.c, 1.18, 1.19 modutil.c, 1.7, 1.8 slapi-plugin.h, 1.36, 1.37 util.c, 1.25, 1.26
- Next message (by thread): [Fedora-directory-commits] ldapserver/ldap/servers/slapd/back-ldbm filterindex.c, 1.8, 1.9
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Fedora-directory-commits
mailing list