{
if (save_name)
{
- assign_string (&real_s_name, safer_name_suffix (save_name, false));
+ assign_string (&real_s_name,
+ safer_name_suffix (save_name, false,
+ absolute_names_option));
real_s_totsize = save_totsize;
real_s_sizeleft = save_sizeleft;
}
assign_string (&real_s_name, 0);
else
{
- assign_string (&real_s_name, safer_name_suffix (save_name, false));
+ assign_string (&real_s_name,
+ safer_name_suffix (save_name, false,
+ absolute_names_option));
real_s_sizeleft = save_sizeleft;
real_s_totsize = save_totsize;
}
{
if (save_name)
{
- assign_string (&real_s_name, safer_name_suffix (save_name, false));
+ assign_string (&real_s_name,
+ safer_name_suffix (save_name, false,
+ absolute_names_option));
real_s_sizeleft = save_sizeleft;
real_s_totsize = save_totsize;
}
if ((duplicate = hash_lookup (link_table, &lp)))
{
/* We found a link. */
- char const *link_name = safer_name_suffix (duplicate->name, true);
+ char const *link_name = safer_name_suffix (duplicate->name, true,
+ absolute_names_option);
duplicate->nlink--;
return;
assign_string (&st->orig_file_name, p);
- assign_string (&st->file_name, safer_name_suffix (p, false));
+ assign_string (&st->file_name,
+ safer_name_suffix (p, false, absolute_names_option));
if (deref_stat (dereference_option, p, &st->stat) != 0)
{
static int
extract_link (char *file_name, int typeflag)
{
- char const *link_name = safer_name_suffix (current_stat_info.link_name, true);
+ char const *link_name = safer_name_suffix (current_stat_info.link_name,
+ true, absolute_names_option);
int interdir_made = 0;
do
if (verbose_option)
print_header (¤t_stat_info, -1);
- file_name = safer_name_suffix (current_stat_info.file_name, false);
+ file_name = safer_name_suffix (current_stat_info.file_name,
+ false, absolute_names_option);
if (strip_name_components)
{
size_t prefix_len = stripped_prefix_len (file_name, strip_name_components);
case 'd':
if (st)
{
- dir = safer_name_suffix (dir_name (st->orig_file_name), false);
+ dir = safer_name_suffix (dir_name (st->orig_file_name),
+ false, absolute_names_option);
len += strlen (dir) - 1;
}
break;