]> Dogcows Code - chaz/tar/commitdiff
Update invocations of safer_name_suffix()
authorSergey Poznyakoff <gray@gnu.org.ua>
Sat, 21 May 2005 23:10:42 +0000 (23:10 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Sat, 21 May 2005 23:10:42 +0000 (23:10 +0000)
src/buffer.c
src/create.c
src/extract.c
src/xheader.c

index 2f6df622a0aa49ff35daf5fcfa023124c6a1752a..6fc3f4319005a55e6058233bf4e3ab56a5dee998 100644 (file)
@@ -587,7 +587,9 @@ flush_write (void)
        {
          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;
            }
@@ -693,7 +695,9 @@ flush_write (void)
        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;
        }
@@ -821,7 +825,9 @@ flush_read (void)
     {
       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;
        }
index fd5de9ebd68a6f29e1b678dc974f54a2380e0842..4edf4882155cab8894530eacf4d2bbc580985154 100644 (file)
@@ -1263,7 +1263,8 @@ dump_hard_link (struct tar_stat_info *st)
       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--;
 
@@ -1361,7 +1362,8 @@ dump_file0 (struct tar_stat_info *st, char *p,
     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)
     {
index 0f75f2653e015d5575dfb296a64d0185c1072238..0e758a2c2456c4b50d526e67f017cfda850dd5ea 100644 (file)
@@ -778,7 +778,8 @@ extract_file (char *file_name, int typeflag)
 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
@@ -1133,7 +1134,8 @@ extract_archive (void)
   if (verbose_option)
     print_header (&current_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);
index 679d074032cc75d7b9dc18bd709b4f1b572b69b9..a45d24a902f521d160e7303509119120f1c87035 100644 (file)
@@ -246,7 +246,8 @@ xheader_format_name (struct tar_stat_info *st, const char *fmt, bool allow_n)
        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;
This page took 0.036731 seconds and 4 git commands to generate.