]> Dogcows Code - chaz/tar/commitdiff
Use current_stat_info
authorSergey Poznyakoff <gray@gnu.org.ua>
Sun, 31 Aug 2003 22:55:21 +0000 (22:55 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Sun, 31 Aug 2003 22:55:21 +0000 (22:55 +0000)
src/mangle.c
src/update.c

index 204bf7c74db0c25bcc646783853ceafce24b95cb..df6f50582e2e7e983c5739daf1ee6795ca941b22 100644 (file)
@@ -34,7 +34,7 @@ struct mangled
 void
 extract_mangle (void)
 {
-  off_t size = current_stat.st_size;
+  off_t size = current_stat_info.stat.st_size;
   char *buffer = xmalloc ((size_t) (size + 1));
   char *copy = buffer;
   char *cursor = buffer;
index 754d321fd4de7ea3ad0c06334fdfcb1d6747cd39..11e86c5d8b436618ed77511fce42a63d79c6f7c0 100644 (file)
@@ -120,16 +120,16 @@ update_archive (void)
            struct name *name;
 
            if (subcommand_option == UPDATE_SUBCOMMAND
-               && (name = name_scan (current_file_name), name))
+               && (name = name_scan (current_stat_info.file_name), name))
              {
                struct stat s;
                enum archive_format unused;
 
-               decode_header (current_header, &current_stat, &unused, 0);
+               decode_header (current_header, &current_stat_info, &unused, 0);
                chdir_do (name->change_dir);
-               if (deref_stat (dereference_option, current_file_name, &s) == 0
-                   && s.st_mtime <= current_stat.st_mtime)
-                 add_avoided_name (current_file_name);
+               if (deref_stat (dereference_option, current_stat_info.file_name, &s) == 0
+                   && s.st_mtime <= current_stat_info.stat.st_mtime)
+                 add_avoided_name (current_stat_info.file_name);
              }
            skip_member ();
            break;
This page took 0.026803 seconds and 4 git commands to generate.