summaryrefslogtreecommitdiff
path: root/source3/registry/reg_frontend.c
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-12-03 17:34:11 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:16:21 -0500
commit2494868ffba14d425531df98651d777a13d3be28 (patch)
tree7c01b88d66124c40bb1eeb70b14455e97811c51f /source3/registry/reg_frontend.c
parent61bd0c8e450b3638c38bc60eb31fc6a4488f3121 (diff)
downloadsamba-2494868ffba14d425531df98651d777a13d3be28.tar.gz
samba-2494868ffba14d425531df98651d777a13d3be28.tar.bz2
samba-2494868ffba14d425531df98651d777a13d3be28.zip
r20020: Arglll... eventlogadm links against reg_db but not the rest of the registry
stuff. Revert the last change. This needs better fixing. Volker (This used to be commit ad1e00430bf5c4130023d30e9c8266ecdc640d2b)
Diffstat (limited to 'source3/registry/reg_frontend.c')
-rw-r--r--source3/registry/reg_frontend.c32
1 files changed, 5 insertions, 27 deletions
diff --git a/source3/registry/reg_frontend.c b/source3/registry/reg_frontend.c
index 1f6b285653..3bb88eaf47 100644
--- a/source3/registry/reg_frontend.c
+++ b/source3/registry/reg_frontend.c
@@ -93,16 +93,15 @@ BOOL init_registry( void )
int i;
- /* build the cache tree of registry hooks */
-
- reghook_cache_init();
-
if ( !regdb_init() ) {
- DEBUG(0,("init_registry: failed to initialize the registry "
- "tdb!\n"));
+ DEBUG(0,("init_registry: failed to initialize the registry tdb!\n"));
return False;
}
+ /* build the cache tree of registry hooks */
+
+ reghook_cache_init();
+
for ( i=0; reg_hooks[i].keyname; i++ ) {
if ( !reghook_cache_add(&reg_hooks[i]) )
return False;
@@ -643,24 +642,3 @@ WERROR reg_delete_path(const struct nt_user_token *token,
TALLOC_FREE(hive);
return err;
}
-
-WERROR reg_set_dword(struct registry_key *key, const char *valuename,
- uint32 value)
-{
- struct registry_value val;
- ZERO_STRUCT(val);
- val.type = REG_DWORD;
- val.v.dword = value;
- return reg_setvalue(key, valuename, &val);
-}
-
-WERROR reg_set_sz(struct registry_key *key, const char *valuename,
- const char *value)
-{
- struct registry_value val;
- ZERO_STRUCT(val);
- val.type = REG_SZ;
- val.v.sz.str = CONST_DISCARD(char *, value);
- val.v.sz.len = strlen(value)+1;
- return reg_setvalue(key, valuename, &val);
-}