svn commit: samba r18003 - in branches/SAMBA_3_0/source/libads: .

jra at samba.org jra at samba.org
Sat Sep 2 05:55:48 GMT 2006


Author: jra
Date: 2006-09-02 05:55:47 +0000 (Sat, 02 Sep 2006)
New Revision: 18003

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

Log:
Creating a directory and getting EEXIST isn't an error.
Jeremy.

Modified:
   branches/SAMBA_3_0/source/libads/kerberos.c


Changeset:
Modified: branches/SAMBA_3_0/source/libads/kerberos.c
===================================================================
--- branches/SAMBA_3_0/source/libads/kerberos.c	2006-09-02 04:53:04 UTC (rev 18002)
+++ branches/SAMBA_3_0/source/libads/kerberos.c	2006-09-02 05:55:47 UTC (rev 18003)
@@ -485,7 +485,7 @@
 	if (!dname) {
 		return False;
 	}
-	if (mkdir(dname, 0755)==-1) {
+	if ((mkdir(dname, 0755)==-1) && (errno != EEXIST)) {
 		DEBUG(0,("create_local_private_krb5_conf_for_domain: "
 			"failed to create directory %s. Error was %s\n",
 			dname, strerror(errno) ));



More information about the samba-cvs mailing list