summaryrefslogtreecommitdiff
path: root/source3/passdb/pdb_tdb.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-03-27 16:55:35 +0100
committerStefan Metzmacher <metze@samba.org>2008-04-01 14:04:20 +0200
commit8957f6b0cf76e595d08eeb4accbf67575ea35b5b (patch)
treed9fa468a0851da709de2b127e19e5e56bcc28efb /source3/passdb/pdb_tdb.c
parent663eb087e6ec3cd86345821ac08f22f625677d58 (diff)
downloadsamba-8957f6b0cf76e595d08eeb4accbf67575ea35b5b.tar.gz
samba-8957f6b0cf76e595d08eeb4accbf67575ea35b5b.tar.bz2
samba-8957f6b0cf76e595d08eeb4accbf67575ea35b5b.zip
pdb_tdb: use != 0 instead off == -1 for dbwrap functions
metze (This used to be commit d4826a01369c00b5e83cd62c2412a4eb826e216d)
Diffstat (limited to 'source3/passdb/pdb_tdb.c')
-rw-r--r--source3/passdb/pdb_tdb.c2
1 files changed, 1 insertions, 1 deletions
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