summaryrefslogtreecommitdiff
path: root/source4/lib/ldb
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-09-23 02:21:51 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:59:06 -0500
commit54d33d5674720aaa93dff20b66e7ab27d9027677 (patch)
tree94d141cbd3269686e5028e64d2fb7a4d53e41ae6 /source4/lib/ldb
parent169627d7f55f9f58a6564a9efe659a529bbf348a (diff)
downloadsamba-54d33d5674720aaa93dff20b66e7ab27d9027677.tar.gz
samba-54d33d5674720aaa93dff20b66e7ab27d9027677.tar.bz2
samba-54d33d5674720aaa93dff20b66e7ab27d9027677.zip
r2556: fixed the -s one bug that jelmer pointed out
(This used to be commit 03c38477add0c5f78072700615b2c1513cbc7663)
Diffstat (limited to 'source4/lib/ldb')
-rw-r--r--source4/lib/ldb/ldb_tdb/ldb_match.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/ldb/ldb_tdb/ldb_match.c b/source4/lib/ldb/ldb_tdb/ldb_match.c
index cae5886547..6f55496042 100644
--- a/source4/lib/ldb/ldb_tdb/ldb_match.c
+++ b/source4/lib/ldb/ldb_tdb/ldb_match.c
@@ -218,7 +218,7 @@ static int scope_match(const char *dn, const char *base, enum ldb_scope scope)
base_len = strlen(base);
dn_len = strlen(dn);
- if (ldb_dn_cmp(dn, base) == 0) {
+ if (scope != LDB_SCOPE_ONELEVEL && ldb_dn_cmp(dn, base) == 0) {
return 1;
}