return NT_STATUS_OK;
}
+ if (is_ntfs_stream_smb_fname(fsp->fsp_name)) {
+ return NT_STATUS_INVALID_PARAMETER;
+ }
+
posix_pathnames = (fsp->fsp_name->flags & SMB_FILENAME_POSIX_PATH);
status = get_ea_names_from_file(talloc_tos(),
return NT_STATUS_OK;
}
-
-#if 0
/****************************************************************************
Return a linked list of the total EA's. Plus the total size
****************************************************************************/
-static NTSTATUS get_ea_list_from_fsp_new(TALLOC_CTX *mem_ctx,
+static NTSTATUS get_ea_list_from_fsp(TALLOC_CTX *mem_ctx,
files_struct *fsp,
size_t *pea_total_len,
struct ea_list **ea_list)
return NT_STATUS_OK;
}
+ if (is_ntfs_stream_smb_fname(fsp->fsp_name)) {
+ return NT_STATUS_INVALID_PARAMETER;
+ }
+
posix_pathnames = (fsp->fsp_name->flags & SMB_FILENAME_POSIX_PATH);
status = get_ea_names_from_file(talloc_tos(),
*ea_list = ea_list_head;
return NT_STATUS_OK;
}
-#endif
-
-static NTSTATUS get_ea_list_from_fsp(TALLOC_CTX *mem_ctx,
- files_struct *fsp,
- size_t *pea_total_len,
- struct ea_list **ea_list)
-{
- *pea_total_len = 0;
- *ea_list = NULL;
-
- /* symlink */
- if (fsp == NULL) {
- return NT_STATUS_OK;
- }
-
- if (!lp_ea_support(SNUM(fsp->conn))) {
- return NT_STATUS_OK;
- }
-
- if (is_ntfs_stream_smb_fname(fsp->fsp_name)) {
- return NT_STATUS_INVALID_PARAMETER;
- }
-
- return get_ea_list_from_file_path(mem_ctx,
- fsp,
- pea_total_len,
- ea_list);
-}
/****************************************************************************
Fill a qfilepathinfo buffer with EA's. Returns the length of the buffer