1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

s3/smbd: Remove connection_struct from get_ea_names_from_file

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Noel Power 2021-02-10 12:46:09 +00:00 committed by Jeremy Allison
parent de83946311
commit 1d1b80e5dc
4 changed files with 2 additions and 6 deletions

View File

@ -685,7 +685,6 @@ static NTSTATUS walk_xattr_streams(vfs_handle_struct *handle,
return NT_STATUS_UNSUCCESSFUL);
status = get_ea_names_from_file(talloc_tos(),
handle->conn,
smb_fname->fsp,
&names,
&num_names);

View File

@ -788,7 +788,7 @@ void reply_ntcreate_and_X(struct smb_request *req)
size_t num_names = 0;
/* Do we have any EA's ? */
status = get_ea_names_from_file(
ctx, conn, smb_fname->fsp, NULL, &num_names);
ctx, smb_fname->fsp, NULL, &num_names);
if (NT_STATUS_IS_OK(status) && num_names) {
file_status &= ~NO_EAS;
}
@ -1466,7 +1466,7 @@ static void call_nt_transact_create(connection_struct *conn,
size_t num_names = 0;
/* Do we have any EA's ? */
status = get_ea_names_from_file(
ctx, conn, smb_fname->fsp, NULL, &num_names);
ctx, smb_fname->fsp, NULL, &num_names);
if (NT_STATUS_IS_OK(status) && num_names) {
file_status &= ~NO_EAS;
}

View File

@ -1213,7 +1213,6 @@ NTSTATUS get_ea_value(TALLOC_CTX *mem_ctx, connection_struct *conn,
const char *ea_name,
struct ea_struct *pea);
NTSTATUS get_ea_names_from_file(TALLOC_CTX *mem_ctx,
connection_struct *conn,
files_struct *fsp,
char ***pnames,
size_t *pnum_names);

View File

@ -292,7 +292,6 @@ NTSTATUS get_ea_value(TALLOC_CTX *mem_ctx,
}
NTSTATUS get_ea_names_from_file(TALLOC_CTX *mem_ctx,
connection_struct *conn,
files_struct *fsp,
char ***pnames,
size_t *pnum_names)
@ -449,7 +448,6 @@ static NTSTATUS get_ea_list_from_fsp(TALLOC_CTX *mem_ctx,
posix_pathnames = (fsp->fsp_name->flags & SMB_FILENAME_POSIX_PATH);
status = get_ea_names_from_file(talloc_tos(),
fsp->conn,
fsp,
&names,
&num_names);