From 6c1dde71f4ace7901fa13347ef9ced0ac8b16233 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 18 Aug 2005 10:58:05 +0000 Subject: r9386: OpenKey with a bad name must return WERR_BADFILE (w2k3 regedit relies on this) (This used to be commit ae42976590b3c532790d854be45fff49074aef68) --- source4/lib/registry/reg_backend_ldb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4') diff --git a/source4/lib/registry/reg_backend_ldb.c b/source4/lib/registry/reg_backend_ldb.c index 19d982c109..784d8ac6fa 100644 --- a/source4/lib/registry/reg_backend_ldb.c +++ b/source4/lib/registry/reg_backend_ldb.c @@ -214,7 +214,7 @@ static WERROR ldb_open_key(TALLOC_CTX *mem_ctx, struct registry_key *h, const ch ret = ldb_search(c, ldap_path, LDB_SCOPE_BASE, "(key=*)", NULL,&msg); if(ret == 0) { - return WERR_NO_MORE_ITEMS; + return WERR_BADFILE; } else if(ret < 0) { DEBUG(0, ("Error opening key '%s': %s\n", ldap_path, ldb_errstring(c))); return WERR_FOOBAR; -- cgit