summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2007-12-31 03:25:54 +0100
committerMichael Adam <obnox@samba.org>2007-12-31 03:25:54 +0100
commitfeb4d82724657c5567d9ebefef7242a2a48496e2 (patch)
tree06eacbddccc1c60f6f879c636817c99b4560b387
parent8d9fb62a4593525a84104665d0a5318e16993d9e (diff)
downloadsamba-feb4d82724657c5567d9ebefef7242a2a48496e2.tar.gz
samba-feb4d82724657c5567d9ebefef7242a2a48496e2.tar.bz2
samba-feb4d82724657c5567d9ebefef7242a2a48496e2.zip
Fix a permissions error in reg_deletekey_recursive().
Michael (This used to be commit 4a56d3d7075bd8bbd5e139c9433789ab29f6a70e)
-rw-r--r--source3/registry/reg_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/registry/reg_api.c b/source3/registry/reg_api.c
index bc4508ff94..bb410e646b 100644
--- a/source3/registry/reg_api.c
+++ b/source3/registry/reg_api.c
@@ -729,7 +729,7 @@ WERROR reg_deletekey_recursive_internal(TALLOC_CTX *ctx,
}
/* recurse through subkeys first */
- werr = reg_openkey(mem_ctx, parent, path, REG_KEY_WRITE, &key);
+ werr = reg_openkey(mem_ctx, parent, path, REG_KEY_ALL, &key);
if (!W_ERROR_IS_OK(werr)) {
goto done;
}