]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
pdb_tdb: use != 0 instead off == -1 for dbwrap functions
authorStefan Metzmacher <metze@samba.org>
Thu, 27 Mar 2008 15:55:35 +0000 (16:55 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 1 Apr 2008 12:04:20 +0000 (14:04 +0200)
metze

source/passdb/pdb_tdb.c

index b41a7cc0a48bc03730cb0249982603b20cd90872..068ddb3692c436d77562db61257153f2d4ad9a37 100644 (file)
@@ -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