1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

s3:registry: don't skip base keys from existence check in regdb_create_subkey()

Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>
This commit is contained in:
Michael Adam 2011-07-01 13:58:45 +02:00
parent 6b99aa496f
commit da2e64b63f

View File

@ -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;
}