mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
werror: replace WERR_REG_IO_FAILURE with WERR_REGISTRY_IO_FAILED in source3/registry/
Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
c80ac76f81
commit
de38834516
@ -804,7 +804,7 @@ WERROR reg_setvalue(struct registry_key *key, const char *name,
|
||||
if (!store_reg_values(key->key, key->values)) {
|
||||
TALLOC_FREE(key->values);
|
||||
DEBUG(0, ("reg_setvalue: store_reg_values failed\n"));
|
||||
err = WERR_REG_IO_FAILURE;
|
||||
err = WERR_REGISTRY_IO_FAILED;
|
||||
goto done;
|
||||
}
|
||||
|
||||
@ -870,7 +870,7 @@ WERROR reg_deletevalue(struct registry_key *key, const char *name)
|
||||
|
||||
if (!store_reg_values(key->key, key->values)) {
|
||||
TALLOC_FREE(key->values);
|
||||
err = WERR_REG_IO_FAILURE;
|
||||
err = WERR_REGISTRY_IO_FAILED;
|
||||
DEBUG(0, ("reg_deletevalue: store_reg_values failed\n"));
|
||||
goto done;
|
||||
}
|
||||
@ -940,7 +940,7 @@ WERROR reg_deleteallvalues(struct registry_key *key)
|
||||
|
||||
if (!store_reg_values(key->key, key->values)) {
|
||||
TALLOC_FREE(key->values);
|
||||
return WERR_REG_IO_FAILURE;
|
||||
return WERR_REGISTRY_IO_FAILED;
|
||||
}
|
||||
|
||||
return WERR_OK;
|
||||
|
@ -95,7 +95,7 @@ static WERROR reg_load_tree(REGF_FILE *regfile, const char *topkeypath,
|
||||
|| !store_reg_keys(®istry_key, subkeys))
|
||||
{
|
||||
DEBUG(0,("reg_load_tree: Failed to load %s!\n", topkeypath));
|
||||
result = WERR_REG_IO_FAILURE;
|
||||
result = WERR_REGISTRY_IO_FAILED;
|
||||
}
|
||||
|
||||
TALLOC_FREE(subkeys);
|
||||
|
@ -509,7 +509,7 @@ static WERROR regdb_upgrade_v1_to_v2(struct db_context *db)
|
||||
|
||||
status = dbwrap_traverse(db, regdb_normalize_keynames_fn, db, NULL);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
werr = WERR_REG_IO_FAILURE;
|
||||
werr = WERR_REGISTRY_IO_FAILED;
|
||||
goto done;
|
||||
}
|
||||
|
||||
@ -704,7 +704,7 @@ static WERROR regdb_upgrade_v2_to_v3(struct db_context *db)
|
||||
|
||||
status = dbwrap_traverse(db, regdb_upgrade_v2_to_v3_fn, db, NULL);
|
||||
if (!NT_STATUS_IS_OK(status)) {
|
||||
werr = WERR_REG_IO_FAILURE;
|
||||
werr = WERR_REGISTRY_IO_FAILED;
|
||||
goto done;
|
||||
}
|
||||
|
||||
@ -805,7 +805,7 @@ WERROR regdb_init(void)
|
||||
}
|
||||
|
||||
if (dbwrap_transaction_start(regdb) != 0) {
|
||||
return WERR_REG_IO_FAILURE;
|
||||
return WERR_REGISTRY_IO_FAILED;
|
||||
}
|
||||
|
||||
if (vers_id == REGDB_VERSION_V1) {
|
||||
@ -837,7 +837,7 @@ WERROR regdb_init(void)
|
||||
/* future upgrade code should go here */
|
||||
|
||||
if (dbwrap_transaction_commit(regdb) != 0) {
|
||||
return WERR_REG_IO_FAILURE;
|
||||
return WERR_REGISTRY_IO_FAILED;
|
||||
}
|
||||
|
||||
return WERR_OK;
|
||||
@ -914,19 +914,19 @@ int regdb_close( void )
|
||||
WERROR regdb_transaction_start(void)
|
||||
{
|
||||
return (dbwrap_transaction_start(regdb) == 0) ?
|
||||
WERR_OK : WERR_REG_IO_FAILURE;
|
||||
WERR_OK : WERR_REGISTRY_IO_FAILED;
|
||||
}
|
||||
|
||||
WERROR regdb_transaction_commit(void)
|
||||
{
|
||||
return (dbwrap_transaction_commit(regdb) == 0) ?
|
||||
WERR_OK : WERR_REG_IO_FAILURE;
|
||||
WERR_OK : WERR_REGISTRY_IO_FAILED;
|
||||
}
|
||||
|
||||
WERROR regdb_transaction_cancel(void)
|
||||
{
|
||||
return (dbwrap_transaction_cancel(regdb) == 0) ?
|
||||
WERR_OK : WERR_REG_IO_FAILURE;
|
||||
WERR_OK : WERR_REGISTRY_IO_FAILED;
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
|
Loading…
Reference in New Issue
Block a user