summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-08-04 23:30:16 +0200
committerMichael Adam <obnox@samba.org>2008-08-05 23:40:26 +0200
commit6e16022d625217bccc273f647c34f55030f78334 (patch)
tree655bce8665201c162f6a143a571960014e9a1f93
parent3b6c8bc662e8c14d9869696fc76e56515a4e642a (diff)
downloadsamba-6e16022d625217bccc273f647c34f55030f78334.tar.gz
samba-6e16022d625217bccc273f647c34f55030f78334.tar.bz2
samba-6e16022d625217bccc273f647c34f55030f78334.zip
registry: use _bystring wrappers to dbwrap_trans_(store|delete).
Michael (This used to be commit 103ce6c9e94ce74e616fe922f2584fd46ae1f3f8)
-rw-r--r--source3/registry/reg_backend_db.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c
index d216e0e085..489f076ce7 100644
--- a/source3/registry/reg_backend_db.c
+++ b/source3/registry/reg_backend_db.c
@@ -1144,8 +1144,7 @@ bool regdb_store_values( const char *key, REGVAL_CTR *values )
goto done;
}
- status = dbwrap_trans_store(regdb, string_term_tdb_data(keystr), data,
- TDB_REPLACE);
+ status = dbwrap_trans_store_bystring(regdb, keystr, data, TDB_REPLACE);
result = NT_STATUS_IS_OK(status);
@@ -1219,8 +1218,7 @@ static WERROR regdb_set_secdesc(const char *key,
if (secdesc == NULL) {
/* assuming a delete */
- status = dbwrap_trans_delete(regdb,
- string_term_tdb_data(tdbkey));
+ status = dbwrap_trans_delete_bystring(regdb, tdbkey);
if (NT_STATUS_IS_OK(status)) {
err = WERR_OK;
} else {
@@ -1236,8 +1234,7 @@ static WERROR regdb_set_secdesc(const char *key,
goto done;
}
- status = dbwrap_trans_store(regdb, string_term_tdb_data(tdbkey),
- tdbdata, 0);
+ status = dbwrap_trans_store_bystring(regdb, tdbkey, tdbdata, 0);
if (!NT_STATUS_IS_OK(status)) {
err = ntstatus_to_werror(status);
goto done;