diff options
author | Volker Lendecke <vl@samba.org> | 2008-03-28 11:57:54 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2008-04-01 14:04:22 +0200 |
commit | 16198dc51e8f03d22de73883c0bb6823c464b8c6 (patch) | |
tree | 144c5eb5a076b47788e73a6a1d2e47858dcfcbdc /source3/registry | |
parent | fcdfff1cc8c1214cbce1fdd863b1ede970234121 (diff) | |
download | samba-16198dc51e8f03d22de73883c0bb6823c464b8c6.tar.gz samba-16198dc51e8f03d22de73883c0bb6823c464b8c6.tar.bz2 samba-16198dc51e8f03d22de73883c0bb6823c464b8c6.zip |
Convert dbwrap_trans_delete to NTSTATUS
Signed-off-by: Stefan Metzmacher <metze@samba.org>
(This used to be commit dead193f46c2b19955ab3e5ac5ba343694f4858a)
Diffstat (limited to 'source3/registry')
-rw-r--r-- | source3/registry/reg_backend_db.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c index 4b8a4b4c37..fd442d6327 100644 --- a/source3/registry/reg_backend_db.c +++ b/source3/registry/reg_backend_db.c @@ -979,7 +979,6 @@ static WERROR regdb_set_secdesc(const char *key, NTSTATUS status; WERROR err = WERR_NOMEM; TDB_DATA tdbdata; - int tdb_ret; tdbkey = talloc_asprintf(mem_ctx, "%s/%s", REG_SECDESC_PREFIX, key); if (tdbkey == NULL) { @@ -989,12 +988,12 @@ static WERROR regdb_set_secdesc(const char *key, if (secdesc == NULL) { /* assuming a delete */ - tdb_ret = dbwrap_trans_delete(regdb, - string_term_tdb_data(tdbkey)); - if (tdb_ret == 0) { + status = dbwrap_trans_delete(regdb, + string_term_tdb_data(tdbkey)); + if (NT_STATUS_IS_OK(status)) { err = WERR_OK; } else { - err = ntstatus_to_werror(map_nt_error_from_unix(errno)); + err = ntstatus_to_werror(status); } goto done; } |