diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-05-08 14:02:27 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-05-09 04:21:05 +0200 |
commit | 9ef47b8fe3a8e1d940946ae611b807fa2cbd5b70 (patch) | |
tree | 4858683fc64422b8a4daa9ff1f561d1335e33698 /source3/modules | |
parent | ad11b90eb6fa3c12b4aaa065e62122d6af78aff2 (diff) | |
download | samba-9ef47b8fe3a8e1d940946ae611b807fa2cbd5b70.tar.gz samba-9ef47b8fe3a8e1d940946ae611b807fa2cbd5b70.tar.bz2 samba-9ef47b8fe3a8e1d940946ae611b807fa2cbd5b70.zip |
s3-vfs: Show the invalid ACL when we say it is invalid for set
Diffstat (limited to 'source3/modules')
-rw-r--r-- | source3/modules/vfs_posixacl.c | 6 |
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; } |