svn commit: samba r13175 - in branches/SAMBA_3_0/source/passdb: .

jra at samba.org jra at samba.org
Fri Jan 27 00:09:03 GMT 2006


Author: jra
Date: 2006-01-27 00:09:03 +0000 (Fri, 27 Jan 2006)
New Revision: 13175

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

Log:
Actually make adding a new user into an empty pdbtdb
file create the file.
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-27 00:09:01 UTC (rev 13174)
+++ branches/SAMBA_3_0/source/passdb/pdb_tdb.c	2006-01-27 00:09:03 UTC (rev 13175)
@@ -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 )) != NULL) {
+			if ((pwd_tdb = tdbsam_tdbopen(tdb_state->tdbsam_location, O_CREAT|O_RDWR )) != NULL) {
 				DEBUG(0, ("pdb_getsampwnam: TDB passwd (%s) did not exist. File successfully created.\n",
 				          tdb_state->tdbsam_location));
 			} else {



More information about the samba-cvs mailing list