From ded0ce8345b99e9d5e0cfaea7cee58648baea4b7 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Wed, 29 Jul 2009 14:16:11 +0200 Subject: s3:dbwrap: change dbwrap_change_uint32_atomic() to return NTSTATUS not uint32_t. Michael --- source3/passdb/pdb_tdb.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'source3/passdb') diff --git a/source3/passdb/pdb_tdb.c b/source3/passdb/pdb_tdb.c index 4d2a1d830a..e32711ec45 100644 --- a/source3/passdb/pdb_tdb.c +++ b/source3/passdb/pdb_tdb.c @@ -1074,6 +1074,7 @@ static uint32_t tdbsam_capabilities(struct pdb_methods *methods) static bool tdbsam_new_rid(struct pdb_methods *methods, uint32 *prid) { uint32 rid; + NTSTATUS status; rid = BASE_RID; /* Default if not set */ @@ -1083,9 +1084,10 @@ static bool tdbsam_new_rid(struct pdb_methods *methods, uint32 *prid) return false; } - if (dbwrap_change_uint32_atomic(db_sam, NEXT_RID_STRING, &rid, 1) != 0) { - DEBUG(3, ("tdbsam_new_rid: Failed to increase %s\n", - NEXT_RID_STRING)); + status = dbwrap_change_uint32_atomic(db_sam, NEXT_RID_STRING, &rid, 1); + if (!NT_STATUS_IS_OK(status)) { + DEBUG(3, ("tdbsam_new_rid: Failed to increase %s: %s\n", + NEXT_RID_STRING, nt_errstr(status))); return false; } -- cgit