diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2004-05-31 17:14:27 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:56:22 -0500 |
commit | 9fba08b621432861b52d5af0b7d994ba0e0100f0 (patch) | |
tree | 01c025a1437d90d1cdaaced25daed9fdbe51d8be /source4/lib/registry/common | |
parent | 50b21753ba816ef23ddaf59dcbf698869e22d986 (diff) | |
download | samba-9fba08b621432861b52d5af0b7d994ba0e0100f0.tar.gz samba-9fba08b621432861b52d5af0b7d994ba0e0100f0.tar.bz2 samba-9fba08b621432861b52d5af0b7d994ba0e0100f0.zip |
r955: Update debian package rules... builds now
(This used to be commit 3df8ff6cf111c6601554bffb411506bd43f726c7)
Diffstat (limited to 'source4/lib/registry/common')
-rw-r--r-- | source4/lib/registry/common/reg_interface.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source4/lib/registry/common/reg_interface.c b/source4/lib/registry/common/reg_interface.c index 6d305e61bf..6ad7ee69cb 100644 --- a/source4/lib/registry/common/reg_interface.c +++ b/source4/lib/registry/common/reg_interface.c @@ -64,8 +64,12 @@ static struct reg_init_function_entry *reg_find_backend_entry(const char *name) if(reg_first_init) { status = register_subsystem("registry", registry_register); - if (!NT_STATUS_IS_OK(status)) + if (NT_STATUS_IS_ERR(status)) { + DEBUG(0, ("Error registering registry subsystem: %s\n", nt_errstr(status))); + /* Don't try the initialisation again */ + reg_first_init = False; return NULL; + } static_init_registry; reg_first_init = False; @@ -83,7 +87,7 @@ static struct reg_init_function_entry *reg_find_backend_entry(const char *name) BOOL reg_has_backend(const char *backend) { - return reg_find_backend_entry(backend)?True:False; + return reg_find_backend_entry(backend) != NULL?True:False; } /* Open a registry file/host/etc */ |