git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a89361
)
lib/param Print error when mkdir of lock path fails
author
Andrew Bartlett
<abartlet@samba.org>
Wed, 12 Oct 2011 11:37:24 +0000
(22:37 +1100)
committer
Andrew Bartlett
<abartlet@samba.org>
Thu, 13 Oct 2011 12:06:07 +0000
(14:06 +0200)
This matches the s3 code for lock_path().
Andrew Bartlett
lib/param/util.c
patch
|
blob
|
history
diff --git
a/lib/param/util.c
b/lib/param/util.c
index a385c4d0f34ae81bb93525fb7c07d529bad7e0c1..3a6a004043da6b94b32f8a5b993e7231ef3f96c0 100644
(file)
--- 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);