git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad11b90
)
s3-vfs: Show the invalid ACL when we say it is invalid for set
author
Andrew Bartlett
<abartlet@samba.org>
Tue, 8 May 2012 04:02:27 +0000
(14:02 +1000)
committer
Andrew Bartlett
<abartlet@samba.org>
Wed, 9 May 2012 02:21:05 +0000
(
04:21
+0200)
source3/modules/vfs_posixacl.c
patch
|
blob
|
history
diff --git
a/source3/modules/vfs_posixacl.c
b/source3/modules/vfs_posixacl.c
index 464099176dfdf62b0225cdf0d7d5e168a968492b..d304f6fe8eecc47eb609c50efbab115eb49f39a9 100644
(file)
--- 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;
}