Use current_stat_info

This commit is contained in:
Sergey Poznyakoff
2003-08-31 22:55:21 +00:00
parent db783659b0
commit 518748f939
2 changed files with 6 additions and 6 deletions
+1 -1
View 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;
+5 -5
View 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;