summaryrefslogtreecommitdiff
path: root/source3/registry/reg_db.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/registry/reg_db.c')
-rw-r--r--source3/registry/reg_db.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/source3/registry/reg_db.c b/source3/registry/reg_db.c
index b05e4957b8..cc212ea4cc 100644
--- a/source3/registry/reg_db.c
+++ b/source3/registry/reg_db.c
@@ -46,6 +46,7 @@ static const char *builtin_registry_paths[] = {
KEY_PRINTING,
KEY_SHARES,
KEY_EVENTLOG,
+ KEY_SMBCONF,
"HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Perflib",
"HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Perflib\\009",
"HKLM\\SYSTEM\\CurrentControlSet\\Control\\Print\\Monitors",
@@ -369,7 +370,8 @@ BOOL regdb_store_keys( const char *key, REGSUBKEY_CTR *ctr )
REGSUBKEY_CTR *subkeys, *old_subkeys;
char *oldkeyname;
- /* fetch a list of the old subkeys so we can determine if any were deleted */
+ /* fetch a list of the old subkeys so we can determine if any were
+ * deleted */
if ( !(old_subkeys = TALLOC_ZERO_P( ctr, REGSUBKEY_CTR )) ) {
DEBUG(0,("regdb_store_keys: talloc() failure!\n"));
@@ -381,7 +383,8 @@ BOOL regdb_store_keys( const char *key, REGSUBKEY_CTR *ctr )
/* store the subkey list for the parent */
if ( !regdb_store_keys_internal( key, ctr ) ) {
- DEBUG(0,("regdb_store_keys: Failed to store new subkey list for parent [%s}\n", key ));
+ DEBUG(0,("regdb_store_keys: Failed to store new subkey list "
+ "for parent [%s}\n", key ));
return False;
}
@@ -403,7 +406,8 @@ BOOL regdb_store_keys( const char *key, REGSUBKEY_CTR *ctr )
num_subkeys = regsubkey_ctr_numkeys( ctr );
for ( i=0; i<num_subkeys; i++ ) {
- pstr_sprintf( path, "%s%c%s", key, '/', regsubkey_ctr_specific_key( ctr, i ) );
+ pstr_sprintf( path, "%s%c%s", key, '/',
+ regsubkey_ctr_specific_key( ctr, i ) );
if ( !(subkeys = TALLOC_ZERO_P( ctr, REGSUBKEY_CTR )) ) {
DEBUG(0,("regdb_store_keys: talloc() failure!\n"));
@@ -413,7 +417,8 @@ BOOL regdb_store_keys( const char *key, REGSUBKEY_CTR *ctr )
if ( regdb_fetch_keys( path, subkeys ) == -1 ) {
/* create a record with 0 subkeys */
if ( !regdb_store_keys_internal( path, subkeys ) ) {
- DEBUG(0,("regdb_store_keys: Failed to store new record for key [%s}\n", path ));
+ DEBUG(0,("regdb_store_keys: Failed to store "
+ "new record for key [%s}\n", path ));
TALLOC_FREE( subkeys );
return False;
}