summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-05-08 14:02:27 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-05-09 04:21:05 +0200
commit9ef47b8fe3a8e1d940946ae611b807fa2cbd5b70 (patch)
tree4858683fc64422b8a4daa9ff1f561d1335e33698
parentad11b90eb6fa3c12b4aaa065e62122d6af78aff2 (diff)
downloadsamba-9ef47b8fe3a8e1d940946ae611b807fa2cbd5b70.tar.gz
samba-9ef47b8fe3a8e1d940946ae611b807fa2cbd5b70.tar.bz2
samba-9ef47b8fe3a8e1d940946ae611b807fa2cbd5b70.zip
s3-vfs: Show the invalid ACL when we say it is invalid for set
-rw-r--r--source3/modules/vfs_posixacl.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/modules/vfs_posixacl.c b/source3/modules/vfs_posixacl.c
index 464099176d..d304f6fe8e 100644
--- a/source3/modules/vfs_posixacl.c
+++ b/source3/modules/vfs_posixacl.c
@@ -347,8 +347,10 @@ static acl_t smb_acl_to_posix(const struct smb_acl_t *acl)
}
if (acl_valid(result) != 0) {
- DEBUG(0, ("smb_acl_to_posix: ACL is invalid for set (%s)\n",
- strerror(errno)));
+ char *acl_string = sys_acl_to_text(acl, NULL);
+ DEBUG(0, ("smb_acl_to_posix: ACL %s is invalid for set (%s)\n",
+ acl_string, strerror(errno)));
+ SAFE_FREE(acl_string);
goto fail;
}