diff options
author | Volker Lendecke <vl@samba.org> | 2008-03-28 11:53:00 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2008-04-01 14:04:22 +0200 |
commit | fcdfff1cc8c1214cbce1fdd863b1ede970234121 (patch) | |
tree | ad50b65a4882ebcb5187305c9b56d61e13eef360 /source3/groupdb | |
parent | d20f88c60302b9af21b3a04e1ebc536a0e0c0e36 (diff) | |
download | samba-fcdfff1cc8c1214cbce1fdd863b1ede970234121.tar.gz samba-fcdfff1cc8c1214cbce1fdd863b1ede970234121.tar.bz2 samba-fcdfff1cc8c1214cbce1fdd863b1ede970234121.zip |
Convert dbwrap_trans_store to NTSTATUS
Signed-off-by: Stefan Metzmacher <metze@samba.org>
(This used to be commit 5f4de856af1abe63b13059bbe1615cb5877770d0)
Diffstat (limited to 'source3/groupdb')
-rw-r--r-- | source3/groupdb/mapping_tdb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/groupdb/mapping_tdb.c b/source3/groupdb/mapping_tdb.c index e2aa06c8ff..718804b1e5 100644 --- a/source3/groupdb/mapping_tdb.c +++ b/source3/groupdb/mapping_tdb.c @@ -123,7 +123,7 @@ static bool add_mapping_entry(GROUP_MAP *map, int flag) { char *key, *buf; int len; - int res; + NTSTATUS status; key = group_mapping_key(talloc_tos(), &map->sid); if (key == NULL) { @@ -141,13 +141,13 @@ static bool add_mapping_entry(GROUP_MAP *map, int flag) len = tdb_pack((uint8 *)buf, len, "ddff", map->gid, map->sid_name_use, map->nt_name, map->comment); - res = dbwrap_trans_store( + status = dbwrap_trans_store( db, string_term_tdb_data(key), make_tdb_data((uint8_t *)buf, len), flag); TALLOC_FREE(key); - return (res == 0); + return NT_STATUS_IS_OK(status); } |