summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/param/util.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/param/util.c b/lib/param/util.c
index a385c4d0f3..3a6a004043 100644
--- a/lib/param/util.c
+++ b/lib/param/util.c
@@ -90,7 +90,9 @@ char *lpcfg_lock_path(TALLOC_CTX* mem_ctx, struct loadparm_context *lp_ctx,
trim_string(dname,"","/");
if (!directory_exist(dname)) {
- mkdir(dname,0755);
+ if (!mkdir(dname,0755))
+ DEBUG(1, ("Unable to create directory %s for file %s. "
+ "Error was %s\n", dname, name, strerror(errno)));
}
fname = talloc_asprintf(mem_ctx, "%s/%s", dname, name);