git.samba.org
/
kseeger
/
samba-autobuild-v4-14-test
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4c2f86
)
vfs_aixacl2: handle pathref fsps in aixjfs2_sys_acl_set_fd()
author
Ralph Boehme
<slow@samba.org>
Mon, 14 Dec 2020 09:07:04 +0000
(10:07 +0100)
committer
Jeremy Allison
<jra@samba.org>
Thu, 17 Dec 2020 18:56:28 +0000
(18:56 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_aixacl2.c
patch
|
blob
|
history
diff --git
a/source3/modules/vfs_aixacl2.c
b/source3/modules/vfs_aixacl2.c
index dd9de98c957e882171b9a32b047ecd85d1f31ef1..92759a73bcd4ef8675b6fbc55e91eb6c24e39cd3 100644
(file)
--- a/
source3/modules/vfs_aixacl2.c
+++ b/
source3/modules/vfs_aixacl2.c
@@
-533,6
+533,18
@@
int aixjfs2_sys_acl_set_fd(vfs_handle_struct *handle,
if (!acl_aixc)
return -1;
+ if (fsp->fsp_flags.is_pathref) {
+ /*
+ * This is no longer a handle based call.
+ */
+ return aclx_put(fsp->fsp_name->base_name,
+ SET_ACL,
+ acl_type_info,
+ acl_aixc,
+ acl_aixc->acl_len,
+ 0);
+ }
+
rc = aclx_fput(
fsp_get_io_fd(fsp),
SET_ACL, /* set only the ACL, not mode bits */