From: Stefan Metzmacher Date: Thu, 27 Mar 2008 15:55:35 +0000 (+0100) Subject: pdb_tdb: use != 0 instead off == -1 for dbwrap functions X-Git-Tag: samba-3.3.0pre1~2967 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d4826a01369c00b5e83cd62c2412a4eb826e216d;p=thirdparty%2Fsamba.git pdb_tdb: use != 0 instead off == -1 for dbwrap functions metze --- diff --git a/source/passdb/pdb_tdb.c b/source/passdb/pdb_tdb.c index b41a7cc0a48..068ddb3692c 100644 --- a/source/passdb/pdb_tdb.c +++ b/source/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