summaryrefslogtreecommitdiff
path: root/lib/util
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-05-08 10:28:03 +0200
committerAndrew Bartlett <abartlet@samba.org>2011-05-08 10:56:28 +0200
commitf946668b7ad1ecc1990fa8ee0499c63c4aac6ea6 (patch)
tree38a8000c9b323352444619101a27278a7b0e6798 /lib/util
parent8b2ba64d603dd1ef1afde621f594dc46f2133708 (diff)
downloadsamba-f946668b7ad1ecc1990fa8ee0499c63c4aac6ea6.tar.gz
samba-f946668b7ad1ecc1990fa8ee0499c63c4aac6ea6.tar.bz2
samba-f946668b7ad1ecc1990fa8ee0499c63c4aac6ea6.zip
Improve debug messages when creating socket directories
This makes clear what the permissions error and directory name actually is Andrew Bartlett
Diffstat (limited to 'lib/util')
-rw-r--r--lib/util/util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/util/util.c b/lib/util/util.c
index d4a936fae9..7f30d436e8 100644
--- a/lib/util/util.c
+++ b/lib/util/util.c
@@ -152,7 +152,8 @@ _PUBLIC_ bool directory_create_or_exist(const char *dname, uid_t uid,
}
if ((st.st_mode & 0777) != dir_perms) {
DEBUG(0, ("invalid permissions on directory "
- "%s\n", dname));
+ "'%s': has 0%o should be 0%o\n", dname,
+ (st.st_mode & 0777), dir_perms));
umask(old_umask);
return false;
}