s3-vfs: Show the invalid ACL when we say it is invalid for set
authorAndrew Bartlett <abartlet@samba.org>
Tue, 8 May 2012 04:02:27 +0000 (14:02 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 9 May 2012 02:21:05 +0000 (04:21 +0200)
source3/modules/vfs_posixacl.c

index 464099176dfdf62b0225cdf0d7d5e168a968492b..d304f6fe8eecc47eb609c50efbab115eb49f39a9 100644 (file)
@@ -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;
        }