git.samba.org
/
abartlet
/
samba.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8855968
)
Add additional detection of extended DNs for ldb_dn_has_extended()
author
Andrew Bartlett
<abartlet@samba.org>
Thu, 13 Nov 2008 03:07:02 +0000
(14:07 +1100)
committer
Andrew Bartlett
<abartlet@samba.org>
Thu, 13 Nov 2008 03:07:02 +0000
(14:07 +1100)
source4/lib/ldb/common/ldb_dn.c
patch
|
blob
|
history
diff --git
a/source4/lib/ldb/common/ldb_dn.c
b/source4/lib/ldb/common/ldb_dn.c
index 1c4e9610095f1dbc636347e0f6c5e9dbf1effe73..81d88151eb96251f414f431946b32f00a397383c 100644
(file)
--- a/
source4/lib/ldb/common/ldb_dn.c
+++ b/
source4/lib/ldb/common/ldb_dn.c
@@
-1739,7
+1739,8
@@
bool ldb_dn_is_special(struct ldb_dn *dn)
bool ldb_dn_has_extended(struct ldb_dn *dn)
{
if ( ! dn || dn->invalid) return false;
- return dn->extended_comp_num;
+ if (dn->extended_linearized && (dn->extended_linearized[0] == '<')) return true;
+ return dn->extended_comp_num != 0;
}
bool ldb_dn_check_special(struct ldb_dn *dn, const char *check)