We have similar messages in directory_create_or_exist_strict() already.
This doesn't solve https://bugzilla.samba.org/show_bug.cgi?id=14166,
but it displays errors which allows admins to find the problem.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
ret = lstat(dname, &sbuf);
if (ret != 0) {
+ DBG_ERR("lstat failed on created directory %s: %s\n",
+ dname, strerror(errno));
return false;
}
if (!S_ISDIR(sbuf.st_mode)) {
+ DBG_ERR("directory %s isn't a directory\n",
+ dname);
return false;
}
}