summaryrefslogtreecommitdiff
path: root/source4/lib/registry/reg_backend_dir
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2004-05-23 14:18:08 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:53:54 -0500
commit25ed82e7ee84a069661c3dd8b0f808049ee7fa88 (patch)
tree4eeec4de4161a4ac247afabef05362ff9f383099 /source4/lib/registry/reg_backend_dir
parentf0d7ae39c00627ebc1e43927ae5df42762e73d95 (diff)
downloadsamba-25ed82e7ee84a069661c3dd8b0f808049ee7fa88.tar.gz
samba-25ed82e7ee84a069661c3dd8b0f808049ee7fa88.tar.bz2
samba-25ed82e7ee84a069661c3dd8b0f808049ee7fa88.zip
r834: Fix gconf and dir backends
(This used to be commit fe5166ee88d401cdd493644af4876e803f546aef)
Diffstat (limited to 'source4/lib/registry/reg_backend_dir')
-rw-r--r--source4/lib/registry/reg_backend_dir/reg_backend_dir.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source4/lib/registry/reg_backend_dir/reg_backend_dir.c b/source4/lib/registry/reg_backend_dir/reg_backend_dir.c
index cb61864d0c..c7ed95d80f 100644
--- a/source4/lib/registry/reg_backend_dir/reg_backend_dir.c
+++ b/source4/lib/registry/reg_backend_dir/reg_backend_dir.c
@@ -127,6 +127,14 @@ static WERROR reg_dir_add_value(REG_KEY *p, const char *name, int type, void *da
return WERR_NOT_SUPPORTED;
}
+static WERROR reg_dir_get_hive(REG_HANDLE *h, int hive, REG_KEY **key)
+{
+ if(hive != 0) return WERR_NO_MORE_ITEMS;
+ *key = reg_key_new_abs("", h, NULL);
+ (*key)->backend_data = talloc_strdup((*key)->mem_ctx, h->location);
+ return WERR_OK;
+}
+
static WERROR reg_dir_del_value(REG_VAL *v)
{
/* FIXME*/
@@ -137,6 +145,7 @@ static struct registry_ops reg_backend_dir = {
.name = "dir",
.open_registry = reg_dir_open,
.open_key = reg_dir_open_key,
+ .get_hive = reg_dir_get_hive,
.fetch_subkeys = reg_dir_fetch_subkeys,
.add_key = reg_dir_add_key,
.del_key = reg_dir_del_key,