summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/providers/ad/ad_gpo_child.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/providers/ad/ad_gpo_child.c b/src/providers/ad/ad_gpo_child.c
index 1254b69cd..4750732be 100644
--- a/src/providers/ad/ad_gpo_child.c
+++ b/src/providers/ad/ad_gpo_child.c
@@ -207,6 +207,7 @@ static errno_t prepare_gpo_cache(TALLOC_CTX *mem_ctx,
char *first = NULL;
char *last = NULL;
char *smb_path_with_suffix = NULL;
+ errno_t ret;
smb_path_with_suffix = talloc_strdup(mem_ctx, input_smb_path_with_suffix);
if (smb_path_with_suffix == NULL) {
@@ -242,9 +243,13 @@ static errno_t prepare_gpo_cache(TALLOC_CTX *mem_ctx,
DEBUG(SSSDBG_CRIT_FAILURE, "talloc_asprintf failed.\n");
return ENOMEM;
}
+ DEBUG(SSSDBG_TRACE_FUNC, "Storing GPOs in %s\n", current_dir);
if ((mkdir(current_dir, 0644)) < 0 && errno != EEXIST) {
- return EINVAL;
+ ret = errno;
+ DEBUG(SSSDBG_CRIT_FAILURE,
+ "mkdir(%s) failed: %d\n", current_dir, ret);
+ return ret;
}
ptr = last;