summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2021-06-22 10:23:22 -0700
committerNoel Power <npower@samba.org>2021-06-23 09:56:00 +0000
commit1139f96cc788baefe25068788c33e9ca6b860e64 (patch)
tree63b5c0c4c3f636039268d737f349da77c88a314c /source3
parent246a19661026ddfbcebeba7b291a779f6bac9a55 (diff)
downloadsamba-1139f96cc788baefe25068788c33e9ca6b860e64.tar.gz
s3: VFS: posixacl_xattr: Remove posixacl_xattr_acl_set_file(). No longer used.
Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Noel Power <npower@samba.org> Autobuild-User(master): Noel Power <npower@samba.org> Autobuild-Date(master): Wed Jun 23 09:56:00 UTC 2021 on sn-devel-184
Diffstat (limited to 'source3')
-rw-r--r--source3/modules/posixacl_xattr.c35
-rw-r--r--source3/modules/posixacl_xattr.h5
2 files changed, 0 insertions, 40 deletions
diff --git a/source3/modules/posixacl_xattr.c b/source3/modules/posixacl_xattr.c
index a3ef8cdda32..365cdc79973 100644
--- a/source3/modules/posixacl_xattr.c
+++ b/source3/modules/posixacl_xattr.c
@@ -382,41 +382,6 @@ SMB_ACL_T posixacl_xattr_acl_get_fd(vfs_handle_struct *handle,
return NULL;
}
-int posixacl_xattr_acl_set_file(vfs_handle_struct *handle,
- const struct smb_filename *smb_fname,
- SMB_ACL_TYPE_T type,
- SMB_ACL_T theacl)
-{
- const char *name;
- char *buf;
- ssize_t size;
- int ret;
-
- size = smb_acl_to_posixacl_xattr(theacl, NULL, 0);
- buf = alloca(size);
- if (!buf) {
- return -1;
- }
-
- ret = smb_acl_to_posixacl_xattr(theacl, buf, size);
- if (ret < 0) {
- errno = -ret;
- return -1;
- }
-
- if (type == SMB_ACL_TYPE_ACCESS) {
- name = ACL_EA_ACCESS;
- } else if (type == SMB_ACL_TYPE_DEFAULT) {
- name = ACL_EA_DEFAULT;
- } else {
- errno = EINVAL;
- return -1;
- }
-
- return SMB_VFS_FSETXATTR(smb_fname->fsp,
- name, buf, size, 0);
-}
-
int posixacl_xattr_acl_set_fd(vfs_handle_struct *handle,
files_struct *fsp,
SMB_ACL_TYPE_T type,
diff --git a/source3/modules/posixacl_xattr.h b/source3/modules/posixacl_xattr.h
index 30825a4befb..6721538ca1d 100644
--- a/source3/modules/posixacl_xattr.h
+++ b/source3/modules/posixacl_xattr.h
@@ -26,11 +26,6 @@ SMB_ACL_T posixacl_xattr_acl_get_fd(vfs_handle_struct *handle,
SMB_ACL_TYPE_T type,
TALLOC_CTX *mem_ctx);
-int posixacl_xattr_acl_set_file(vfs_handle_struct *handle,
- const struct smb_filename *smb_fname,
- SMB_ACL_TYPE_T type,
- SMB_ACL_T theacl);
-
int posixacl_xattr_acl_set_fd(vfs_handle_struct *handle,
files_struct *fsp,
SMB_ACL_TYPE_T type,