mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
vfs_fruit: pass smb_fname to ad_convert
This will be needed in a later commit when converting xattrs in sidecar AppleDouble files. Bug: https://bugzilla.samba.org/show_bug.cgi?id=13076 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
This commit is contained in:
parent
fb137d6070
commit
386249eea3
@ -929,7 +929,9 @@ static bool ad_unpack(struct adouble *ad, const size_t nentries,
|
||||
* @return -1 in case an error occurred, 0 if no conversion was done, 1
|
||||
* otherwise
|
||||
**/
|
||||
static int ad_convert(struct adouble *ad, int fd)
|
||||
static int ad_convert(struct adouble *ad,
|
||||
const struct smb_filename *smb_fname,
|
||||
int fd)
|
||||
{
|
||||
int rc = 0;
|
||||
char *map = MAP_FAILED;
|
||||
@ -1233,7 +1235,7 @@ static ssize_t ad_read_rsrc_adouble(struct adouble *ad,
|
||||
* there is lost.
|
||||
*/
|
||||
|
||||
ret = ad_convert(ad, ad->ad_fd);
|
||||
ret = ad_convert(ad, smb_fname, ad->ad_fd);
|
||||
if (ret != 0) {
|
||||
DBG_WARNING("Failed to convert [%s]\n", smb_fname->base_name);
|
||||
return len;
|
||||
|
Loading…
Reference in New Issue
Block a user