}
static bool ad_convert_xattr(struct adouble *ad,
- const struct smb_filename *smb_fname)
+ const struct smb_filename *smb_fname,
+ bool *converted_xattr)
{
static struct char_mappings **string_replace_cmaps = NULL;
char *map = MAP_FAILED;
int rc;
bool ok;
+ *converted_xattr = false;
+
if (ad->adx_header.adx_num_attrs == 0) {
return true;
}
goto fail;
}
+ *converted_xattr = true;
ok = true;
fail:
const struct smb_filename *smb_fname)
{
bool ok;
+ bool converted_xattr = false;
if (ad_getentrylen(ad, ADEID_FINDERI) == ADEDLEN_FINDERI) {
return 0;
}
- ok = ad_convert_xattr(ad, smb_fname);
+ ok = ad_convert_xattr(ad, smb_fname, &converted_xattr);
if (!ok) {
return -1;
}