summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-09-02 05:55:47 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:39:46 -0500
commitb05c81a184d8763e5f0e25642d7ec4bf80ae8466 (patch)
treeca264f7260c47be0b59c0cbf9349024554c244ef
parent0a847b4111c6f5979910bba574e8ab1c86deec88 (diff)
downloadsamba-b05c81a184d8763e5f0e25642d7ec4bf80ae8466.tar.gz
samba-b05c81a184d8763e5f0e25642d7ec4bf80ae8466.tar.bz2
samba-b05c81a184d8763e5f0e25642d7ec4bf80ae8466.zip
r18003: Creating a directory and getting EEXIST isn't an error.
Jeremy. (This used to be commit 515f86167bd9ec64170218f2ea4fb20d12a28365)
-rw-r--r--source3/libads/kerberos.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libads/kerberos.c b/source3/libads/kerberos.c
index 1d44c28a3c..a7c9e3dcba 100644
--- a/source3/libads/kerberos.c
+++ b/source3/libads/kerberos.c
@@ -485,7 +485,7 @@ BOOL create_local_private_krb5_conf_for_domain(const char *realm, const char *do
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) ));