}
static char *
-decode_xform (char *file_name)
+decode_xform (char *file_name, void *data)
{
- file_name = safer_name_suffix (file_name, false, absolute_names_option);
+ bool link_target = *(bool*)data;
+ file_name = safer_name_suffix (file_name, link_target,
+ absolute_names_option);
if (strip_name_components)
{
size_t prefix_len = stripped_prefix_len (file_name,
return file_name;
}
+bool
+transform_member_name (char **pinput, bool lnk)
+{
+ return transform_name_fp (pinput, decode_xform, &lnk);
+}
+
#define ISOCTAL(c) ((c)>='0'&&(c)<='7')
/* Decode things from a file HEADER block into STAT_INFO, also setting
stat_info->is_dumpdir = true;
}
- transform_name_fp (&stat_info->file_name, decode_xform);
+ transform_member_name (&stat_info->file_name, false);
}
/* Convert buffer at WHERE0 of size DIGS from external format to