git.samba.org
/
jra
/
samba
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10ae8ac
)
libgpo: open the registry in gp_init_reg_ctx().
author
Michael Adam
<obnox@samba.org>
Sat, 22 Mar 2008 01:45:04 +0000
(
02:45
+0100)
committer
Michael Adam
<obnox@samba.org>
Sat, 22 Mar 2008 01:45:04 +0000
(
02:45
+0100)
I forgot the regdb_open() call: registry_init_basic() closes
the registry in the end... sorry.
Michael
source/libgpo/gpo_reg.c
patch
|
blob
|
history
diff --git
a/source/libgpo/gpo_reg.c
b/source/libgpo/gpo_reg.c
index e48a8715d311229b4c07e06b8be67c3ecaab8907..9c6df9caf3811f117c43c5f72a6c596992e10bbb 100644
(file)
--- a/
source/libgpo/gpo_reg.c
+++ b/
source/libgpo/gpo_reg.c
@@
-77,6
+77,11
@@
WERROR gp_init_reg_ctx(TALLOC_CTX *mem_ctx,
return WERR_NOMEM;
}
+ werr = regdb_open();
+ if (!W_ERROR_IS_OK(werr)) {
+ return werr;
+ }
+
if (initial_path) {
tmp_ctx->path = talloc_strdup(mem_ctx, initial_path);
if (!tmp_ctx->path) {