From: Douglas Bagnall Date: Wed, 10 Apr 2024 04:48:39 +0000 (+1200) Subject: ldb: comment for ldb_dn_compare_base X-Git-Tag: tdb-1.4.11~1029 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a9eaf8a3abe66e1a5ff31fa405442f9a09f1dbc5;p=thirdparty%2Fsamba.git ldb: comment for ldb_dn_compare_base Signed-off-by: Douglas Bagnall Reviewed-by: Andrew Bartlett --- diff --git a/lib/ldb/common/ldb_dn.c b/lib/ldb/common/ldb_dn.c index 4204861c0f9..d2517089da5 100644 --- a/lib/ldb/common/ldb_dn.c +++ b/lib/ldb/common/ldb_dn.c @@ -1038,7 +1038,11 @@ char *ldb_dn_alloc_casefold(TALLOC_CTX *mem_ctx, struct ldb_dn *dn) /* Determine if dn is below base, in the ldap tree. Used for * evaluating a subtree search. - * 0 if they match, otherwise non-zero + * + * 0 if they match, otherwise non-zero. + * + * This is not for use in a qsort()-like function, as the comparison + * is not symmetric. */ int ldb_dn_compare_base(struct ldb_dn *base, struct ldb_dn *dn)