From: Noel Power Date: Tue, 9 Feb 2021 17:55:08 +0000 (+0000) Subject: s3/smsbd: prepare to remove connection_struct param from get_ea_list_from_file_path X-Git-Tag: tevent-0.11.0~1711 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ac5de42e9eae5d139fd2a9eafa1fe5e30f4ac74e;p=thirdparty%2Fsamba.git s3/smsbd: prepare to remove connection_struct param from get_ea_list_from_file_path Signed-off-by: Noel Power Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index ded78bf068e..d00eb967061 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -434,19 +434,19 @@ static NTSTATUS get_ea_list_from_file_path(TALLOC_CTX *mem_ctx, *pea_total_len = 0; *ea_list = NULL; - if (!lp_ea_support(SNUM(conn))) { + /* symlink */ + if (fsp == NULL) { return NT_STATUS_OK; } - if (fsp == NULL) { - /* fsp == NULL => symlink */ + if (!lp_ea_support(SNUM(fsp->conn))) { return NT_STATUS_OK; } posix_pathnames = (fsp->fsp_name->flags & SMB_FILENAME_POSIX_PATH); status = get_ea_names_from_file(talloc_tos(), - conn, + fsp->conn, fsp, &names, &num_names); @@ -482,7 +482,7 @@ static NTSTATUS get_ea_list_from_file_path(TALLOC_CTX *mem_ctx, } status = get_ea_value(listp, - conn, + fsp->conn, fsp, fsp->fsp_name, names[i],