summaryrefslogtreecommitdiff
path: root/source3/groupdb
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-03-28 11:57:54 +0100
committerStefan Metzmacher <metze@samba.org>2008-04-01 14:04:22 +0200
commit16198dc51e8f03d22de73883c0bb6823c464b8c6 (patch)
tree144c5eb5a076b47788e73a6a1d2e47858dcfcbdc /source3/groupdb
parentfcdfff1cc8c1214cbce1fdd863b1ede970234121 (diff)
downloadsamba-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/groupdb')
-rw-r--r--source3/groupdb/mapping_tdb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/groupdb/mapping_tdb.c b/source3/groupdb/mapping_tdb.c
index 718804b1e5..05a473c722 100644
--- a/source3/groupdb/mapping_tdb.c
+++ b/source3/groupdb/mapping_tdb.c
@@ -282,17 +282,17 @@ static bool get_group_map_from_ntname(const char *name, GROUP_MAP *map)
static bool group_map_remove(const DOM_SID *sid)
{
char *key;
- int res;
+ NTSTATUS status;
key = group_mapping_key(talloc_tos(), sid);
if (key == NULL) {
return false;
}
- res = dbwrap_trans_delete(db, string_term_tdb_data(key));
+ status = dbwrap_trans_delete(db, string_term_tdb_data(key));
TALLOC_FREE(key);
- return (res == 0);
+ return NT_STATUS_IS_OK(status);
}
/****************************************************************************