summaryrefslogtreecommitdiff
path: root/source3/registry
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-05-04 17:57:51 +0200
committerMichael Adam <obnox@samba.org>2012-06-26 19:57:18 +0200
commitfb706c7365a0db1ef54a928f4eb2c68718516bc8 (patch)
treecac995a1985cefd8539d3d3244d618e4c2e4eee8 /source3/registry
parent353f614c96cab858f57100daee21a112bea93291 (diff)
downloadsamba-fb706c7365a0db1ef54a928f4eb2c68718516bc8.tar.gz
samba-fb706c7365a0db1ef54a928f4eb2c68718516bc8.tar.bz2
samba-fb706c7365a0db1ef54a928f4eb2c68718516bc8.zip
s3:registry: make reg_delete_path() delete the path recursively.
Pair-Programmed-With: Gregor Beck <gbeck@sernet.de> (cherry picked from commit a56992ab71032b54d9879834c12f6b88e6174cb4)
Diffstat (limited to 'source3/registry')
-rw-r--r--source3/registry/reg_api_util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/registry/reg_api_util.c b/source3/registry/reg_api_util.c
index a6a59bb2e3..f2a31833c6 100644
--- a/source3/registry/reg_api_util.c
+++ b/source3/registry/reg_api_util.c
@@ -138,8 +138,8 @@ WERROR reg_create_path(TALLOC_CTX *mem_ctx, const char *orig_path,
}
/*
- * Utility function to create a registry key without opening the hive
- * before. Will not delete a hive.
+ * Utility function to recursively delete a registry key without opening the
+ * hive before. Will not delete a hive.
*/
WERROR reg_delete_path(const struct security_token *token,
@@ -171,7 +171,7 @@ WERROR reg_delete_path(const struct security_token *token,
return err;
}
- err = reg_deletekey(hive, p+1);
+ err = reg_deletekey_recursive(hive, p+1);
SAFE_FREE(path);
TALLOC_FREE(hive);
return err;