From: Andrew Bartlett Date: Tue, 8 May 2012 04:02:27 +0000 (+1000) Subject: s3-vfs: Show the invalid ACL when we say it is invalid for set X-Git-Tag: samba-4.0.0alpha21~260 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9ef47b8fe3a8e1d940946ae611b807fa2cbd5b70;p=thirdparty%2Fsamba.git s3-vfs: Show the invalid ACL when we say it is invalid for set --- diff --git a/source3/modules/vfs_posixacl.c b/source3/modules/vfs_posixacl.c index 464099176df..d304f6fe8ee 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; }