git.samba.org
/
rusty
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
353f614
)
s3:registry: make reg_delete_path() delete the path recursively.
author
Michael Adam
<obnox@samba.org>
Fri, 4 May 2012 15:57:51 +0000
(17:57 +0200)
committer
Michael Adam
<obnox@samba.org>
Tue, 26 Jun 2012 17:57:18 +0000
(19:57 +0200)
Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>
(cherry picked from commit
a56992ab71032b54d9879834c12f6b88e6174cb4
)
source3/registry/reg_api_util.c
patch
|
blob
|
history
diff --git
a/source3/registry/reg_api_util.c
b/source3/registry/reg_api_util.c
index a6a59bb2e33d2b06ff97f029f97f71467d0833ee..f2a31833c64dddbb7d89543da147f451ef83691d 100644
(file)
--- 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 hiv
e
- * before. Will not delete a hive.
+ * Utility function to
recursively delete a registry key without opening th
e
+ *
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;