[SCM] Samba Shared Repository - branch master updated - release-4-0-0alpha8-1106-ge71ce2f
Andrew Bartlett
abartlet at samba.org
Fri Aug 21 01:53:44 MDT 2009
The branch, master has been updated
via e71ce2f9e3c6ae404d9ca8ec4e9a8b689d9dddb4 (commit)
from c49145b1ab18bd859ce925b08e9698d9218f6de8 (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit e71ce2f9e3c6ae404d9ca8ec4e9a8b689d9dddb4
Author: Andrew Bartlett <abartlet at samba.org>
Date: Fri Aug 21 17:50:04 2009 +1000
s4:ldb Python requires that a 'compare' handler return -1, 0 or 1
-----------------------------------------------------------------------
Summary of changes:
source4/lib/ldb/pyldb.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source4/lib/ldb/pyldb.c b/source4/lib/ldb/pyldb.c
index 5825f88..d55e0aa 100644
--- a/source4/lib/ldb/pyldb.c
+++ b/source4/lib/ldb/pyldb.c
@@ -211,7 +211,11 @@ static PyObject *py_ldb_dn_check_special(PyLdbDnObject *self, PyObject *args)
static int py_ldb_dn_compare(PyLdbDnObject *dn1, PyLdbDnObject *dn2)
{
- return ldb_dn_compare(dn1->dn, dn2->dn);
+ int ret;
+ ret = ldb_dn_compare(dn1->dn, dn2->dn);
+ if (ret < 0) ret = -1;
+ if (ret > 0) ret = 1;
+ return ret;
}
static PyObject *py_ldb_dn_get_parent(PyLdbDnObject *self)
--
Samba Shared Repository
More information about the samba-cvs
mailing list