From 8957f6b0cf76e595d08eeb4accbf67575ea35b5b Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 27 Mar 2008 16:55:35 +0100 Subject: pdb_tdb: use != 0 instead off == -1 for dbwrap functions metze (This used to be commit d4826a01369c00b5e83cd62c2412a4eb826e216d) --- source3/passdb/pdb_tdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3') diff --git a/source3/passdb/pdb_tdb.c b/source3/passdb/pdb_tdb.c index b41a7cc0a4..068ddb3692 100644 --- a/source3/passdb/pdb_tdb.c +++ b/source3/passdb/pdb_tdb.c @@ -1335,7 +1335,7 @@ static NTSTATUS tdbsam_rename_sam_account(struct pdb_methods *my_methods, tdb_delete_samacct_only( old_acct ); - if (db_sam->transaction_commit(db_sam) == -1) { + if (db_sam->transaction_commit(db_sam) != 0) { /* * Ok, we're screwed. We've changed the posix account, but * could not adapt passdb.tdb. Shall we change the posix -- cgit