git.samba.org
/
bbaumbach
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
abfc68f
)
r13172: Fix incorrect error message when new tdb not created correctly.
author
Jeremy Allison
<jra@samba.org>
Thu, 26 Jan 2006 23:55:26 +0000
(23:55 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 16:06:16 +0000
(11:06 -0500)
Jeremy.
(This used to be commit
e5f19ad5ac1b728de4ca5a6c37c0d79b0752f536
)
source3/passdb/pdb_tdb.c
patch
|
blob
|
history
diff --git
a/source3/passdb/pdb_tdb.c
b/source3/passdb/pdb_tdb.c
index 8bf9b1b2828cdc1f7fbd94a81e858a29765a5b36..d58187ffe5beddec4c74b7ee223a1d9c39cbe3fc 100644
(file)
--- a/
source3/passdb/pdb_tdb.c
+++ b/
source3/passdb/pdb_tdb.c
@@
-420,7
+420,7
@@
static NTSTATUS tdbsam_getsampwnam (struct pdb_methods *my_methods, SAM_ACCOUNT
* TDB file doesn't exist, so try to create new one. This is useful to avoid
* confusing error msg when adding user account first time
*/
- if (
!(pwd_tdb = tdbsam_tdbopen(tdb_state->tdbsam_location, O_CREAT ))
) {
+ if (
(pwd_tdb = tdbsam_tdbopen(tdb_state->tdbsam_location, O_CREAT )) != NULL
) {
DEBUG(0, ("pdb_getsampwnam: TDB passwd (%s) did not exist. File successfully created.\n",
tdb_state->tdbsam_location));
} else {