From 9ef47b8fe3a8e1d940946ae611b807fa2cbd5b70 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 8 May 2012 14:02:27 +1000 Subject: s3-vfs: Show the invalid ACL when we say it is invalid for set --- source3/modules/vfs_posixacl.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source3/modules') 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; } -- cgit