summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2011-07-01 13:58:45 +0200
committerMichael Adam <obnox@samba.org>2011-07-04 20:02:07 +0200
commitda2e64b63f6bbb2faa93f621e14992e38aa37354 (patch)
treee93ec73fcc2ec35bb9cef1c574eae499d8c7f98a
parent6b99aa496fe653f6bb7dcd7720f5a2c736779af6 (diff)
downloadsamba-da2e64b63f6bbb2faa93f621e14992e38aa37354.tar.gz
samba-da2e64b63f6bbb2faa93f621e14992e38aa37354.tar.bz2
samba-da2e64b63f6bbb2faa93f621e14992e38aa37354.zip
s3:registry: don't skip base keys from existence check in regdb_create_subkey()
Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>
-rw-r--r--source3/registry/reg_backend_db.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c
index b89da95ae6..2a0a0da8f2 100644
--- a/source3/registry/reg_backend_db.c
+++ b/source3/registry/reg_backend_db.c
@@ -1132,7 +1132,7 @@ static WERROR regdb_create_subkey(const char *key, const char *subkey)
TALLOC_CTX *mem_ctx = talloc_stackframe();
struct regdb_create_subkey_context create_ctx;
- if (!regdb_key_is_base_key(key) && !regdb_key_exists(regdb, key)) {
+ if (!regdb_key_exists(regdb, key)) {
werr = WERR_NOT_FOUND;
goto done;
}