mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
pdb_tdb: use != 0 instead off == -1 for dbwrap functions
metze (This used to be commit d4826a01369c00b5e83cd62c2412a4eb826e216d)
This commit is contained in:
parent
663eb087e6
commit
8957f6b0cf
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user