git.samba.org
/
metze
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc6ee68
)
vfs_aixacl: handle pathref fsps in aixacl_sys_acl_set_fd()
author
Ralph Boehme
<slow@samba.org>
Mon, 14 Dec 2020 09:04:15 +0000
(10:04 +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_aixacl.c
patch
|
blob
|
history
diff --git
a/source3/modules/vfs_aixacl.c
b/source3/modules/vfs_aixacl.c
index 149c2f86d156a0f6589deff1cad9878dd0c2e64c..833d8b47fefdbbcae450c387a124e0be7b9123cb 100644
(file)
--- a/
source3/modules/vfs_aixacl.c
+++ b/
source3/modules/vfs_aixacl.c
@@
-166,6
+166,15
@@
int aixacl_sys_acl_set_fd(vfs_handle_struct *handle,
if (!file_acl)
return -1;
+ if (fsp->fsp_flags.is_pathref) {
+ /*
+ * This is no longer a handle based call.
+ */
+ return = chacl(fsp->fsp_name->base_name,
+ file_acl,
+ file_acl->acl_len);
+ }
+
rc = fchacl(fsp_get_io_fd(fsp),file_acl,file_acl->acl_len);
DEBUG(10,("errno is %d\n",errno));
DEBUG(10,("return code is %d\n",rc));