ad_convert() doesn't really need the dirfsp in most places. Only
ad_convert_delete_adfile() would use it, so instead open a dirfsp internally for
this function in a later commit.
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
* otherwise
**/
int ad_convert(struct vfs_handle_struct *handle,
- struct files_struct *dirfsp,
const struct smb_filename *smb_fname,
const char *catia_mappings,
uint32_t flags)
ok = ad_convert_delete_adfile(handle,
ad,
- dirfsp,
+ handle->conn->cwd_fsp,
smb_fname,
flags);
if (!ok) {
int ad_getdate(const struct adouble *ad, unsigned int dateoff, uint32_t *date);
int ad_setdate(struct adouble *ad, unsigned int dateoff, uint32_t date);
int ad_convert(struct vfs_handle_struct *handle,
- struct files_struct *dirfsp,
const struct smb_filename *smb_fname,
const char *catia_mappings,
uint32_t flags);
}
ret = ad_convert(handle,
- handle->conn->cwd_fsp,
smb_fname,
macos_string_replace_map,
conv_flags);
}
ret = ad_convert(handle,
- handle->conn->cwd_fsp,
fname,
macos_string_replace_map,
conv_flags);