static NTSTATUS get_ea_list_from_file_path(TALLOC_CTX *mem_ctx,
connection_struct *conn,
files_struct *fsp,
- const struct smb_filename *smb_fname,
size_t *pea_total_len,
struct ea_list **ea_list)
{
return NT_STATUS_OK;
}
- if (fsp) {
- posix_pathnames =
- (fsp->fsp_name->flags & SMB_FILENAME_POSIX_PATH);
- } else {
- posix_pathnames = (smb_fname->flags & SMB_FILENAME_POSIX_PATH);
+ if (fsp == NULL) {
+ /* fsp == NULL => symlink */
+ return NT_STATUS_OK;
}
+ posix_pathnames = (fsp->fsp_name->flags & SMB_FILENAME_POSIX_PATH);
+
status = get_ea_names_from_file(talloc_tos(),
conn,
fsp,
status = get_ea_value(listp,
conn,
fsp,
- smb_fname,
+ fsp->fsp_name,
names[i],
&listp->ea);
return get_ea_list_from_file_path(mem_ctx,
conn,
- fsp,
- smb_fname,
+ smb_fname->fsp,
pea_total_len,
ea_list);
}
(void)get_ea_list_from_file_path(mem_ctx,
conn,
fsp,
- fsp->fsp_name,
&total_ea_len,
&ea_list);
struct ea_list *ea_list;
NTSTATUS status = get_ea_list_from_file_path(mem_ctx,
conn,
- fsp,
- smb_fname,
+ smb_fname->fsp,
&total_ea_len,
&ea_list);
if (!NT_STATUS_IS_OK(status)) {