Author: jra
Date: 2006-01-26 23:55:26 +0000 (Thu, 26 Jan 2006)
New Revision: 13172

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=13172

Log:
Fix incorrect error message when new tdb not created correctly.
Jeremy.

Modified:
   branches/SAMBA_3_0/source/passdb/pdb_tdb.c


Changeset:
Modified: branches/SAMBA_3_0/source/passdb/pdb_tdb.c
===================================================================
--- branches/SAMBA_3_0/source/passdb/pdb_tdb.c  2006-01-26 23:13:04 UTC (rev 
13171)
+++ branches/SAMBA_3_0/source/passdb/pdb_tdb.c  2006-01-26 23:55:26 UTC (rev 
13172)
@@ -420,7 +420,7 @@
                         * 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 {

Reply via email to