summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-08-18 10:58:05 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:33:31 -0500
commit6c1dde71f4ace7901fa13347ef9ced0ac8b16233 (patch)
treec8cc8f590a09d035973060340e3a82ac03061abd /source4
parentb59bbe3fec71e225ba99c724762573e28f77c5f9 (diff)
downloadsamba-6c1dde71f4ace7901fa13347ef9ced0ac8b16233.tar.gz
samba-6c1dde71f4ace7901fa13347ef9ced0ac8b16233.tar.bz2
samba-6c1dde71f4ace7901fa13347ef9ced0ac8b16233.zip
r9386: OpenKey with a bad name must return WERR_BADFILE (w2k3 regedit relies on this)
(This used to be commit ae42976590b3c532790d854be45fff49074aef68)
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/registry/reg_backend_ldb.c2
1 files changed, 1 insertions, 1 deletions
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;