]> Dogcows Code - chaz/tar/commitdiff
Updated invocations of safer_name_suffix
authorSergey Poznyakoff <gray@gnu.org.ua>
Sat, 3 Jan 2004 22:25:24 +0000 (22:25 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Sat, 3 Jan 2004 22:25:24 +0000 (22:25 +0000)
src/create.c
src/extract.c

index 6e49b59be090b0e45c620e580248d3c8266f4c8d..5292f82c6ed1224a6bfabe9f1401af5012651954 100644 (file)
@@ -1181,7 +1181,7 @@ dump_hard_link (struct tar_stat_info *stat)
       if ((dup = hash_lookup (link_table, &lp)))
        {
          /* We found a link.  */
-         char const *link_name = safer_name_suffix (dup->name, 1);
+         char const *link_name = safer_name_suffix (dup->name, true);
 
          dup->nlink--;
              
@@ -1277,7 +1277,7 @@ dump_file0 (struct tar_stat_info *stat, char *p,
     return;
 
   assign_string (&stat->orig_file_name, p);
-  assign_string (&stat->file_name, safer_name_suffix (p, 0));
+  assign_string (&stat->file_name, safer_name_suffix (p, false));
 
   if (deref_stat (dereference_option, p, &stat->stat) != 0)
     {
index 84e4ecdd733f84579b1d7524676894adb526653d..e62671e985fb32076623a5c7a06f6c273c4d9e0a 100644 (file)
@@ -572,7 +572,7 @@ extract_archive (void)
   if (verbose_option)
     print_header (&current_stat_info, -1);
 
-  file_name = safer_name_suffix (current_stat_info.file_name, 0);
+  file_name = safer_name_suffix (current_stat_info.file_name, false);
   if (strip_path_elements)
     {
       size_t prefix_len = stripped_prefix_len (file_name, strip_path_elements);
@@ -861,7 +861,8 @@ extract_archive (void)
 
     again_link:
       {
-       char const *link_name = safer_name_suffix (current_stat_info.link_name, 1);
+       char const *link_name = safer_name_suffix (current_stat_info.link_name,
+                                                  true);
        struct stat st1, st2;
        int e;
 
This page took 0.034149 seconds and 4 git commands to generate.