From 54d33d5674720aaa93dff20b66e7ab27d9027677 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 23 Sep 2004 02:21:51 +0000 Subject: r2556: fixed the -s one bug that jelmer pointed out (This used to be commit 03c38477add0c5f78072700615b2c1513cbc7663) --- source4/lib/ldb/ldb_tdb/ldb_match.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/lib/ldb/ldb_tdb') 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; } -- cgit