mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
r18003: Creating a directory and getting EEXIST isn't an error.
Jeremy.
(This used to be commit 515f86167b
)
This commit is contained in:
parent
0a847b4111
commit
b05c81a184
@ -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) ));
|
||||
|
Loading…
Reference in New Issue
Block a user