summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2022-05-17 15:32:24 +0200
committerJule Anger <janger@samba.org>2022-06-09 08:54:16 +0000
commitd9222188190db6f72349bbc35b89b85b1150864c (patch)
tree17ea345fa37ca6b58c87988c4c3aa30b4b6c0d95
parentf752c3897403af189ddea581eb27ad0783deb73c (diff)
downloadsamba-d9222188190db6f72349bbc35b89b85b1150864c.tar.gz
vfs_gpfs: pass fsp to gpfsacl_get_posix_acl()
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15069 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Christof Schmitt <cs@samba.org> (cherry picked from commit c26efe0c23b426c4a1e7073b040da85df6f1ea61)
-rw-r--r--source3/modules/vfs_gpfs.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/modules/vfs_gpfs.c b/source3/modules/vfs_gpfs.c
index 2c647f6736e..f2bb3983a89 100644
--- a/source3/modules/vfs_gpfs.c
+++ b/source3/modules/vfs_gpfs.c
@@ -940,9 +940,11 @@ static SMB_ACL_T gpfs2smb_acl(const struct gpfs_acl *pacl, TALLOC_CTX *mem_ctx)
return result;
}
-static SMB_ACL_T gpfsacl_get_posix_acl(const char *path, gpfs_aclType_t type,
+static SMB_ACL_T gpfsacl_get_posix_acl(struct files_struct *fsp,
+ gpfs_aclType_t type,
TALLOC_CTX *mem_ctx)
{
+ const char *path = fsp->fsp_name->base_name;
struct gpfs_acl *pacl;
SMB_ACL_T result = NULL;
@@ -1011,8 +1013,7 @@ static SMB_ACL_T gpfsacl_sys_acl_get_fd(vfs_handle_struct *handle,
DEBUG(0, ("Got invalid type: %d\n", type));
smb_panic("exiting");
}
- return gpfsacl_get_posix_acl(fsp->fsp_name->base_name,
- gpfs_type, mem_ctx);
+ return gpfsacl_get_posix_acl(fsp, gpfs_type, mem_ctx);
}
static int gpfsacl_sys_acl_blob_get_fd(vfs_handle_struct *handle,