From: Sergey Poznyakoff Date: Sun, 31 Aug 2003 22:55:21 +0000 (+0000) Subject: Use current_stat_info X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=518748f9390f5bbc476e0318cabd0dea549ad3f8;p=chaz%2Ftar Use current_stat_info --- diff --git a/src/mangle.c b/src/mangle.c index 204bf7c..df6f505 100644 --- a/src/mangle.c +++ b/src/mangle.c @@ -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; diff --git a/src/update.c b/src/update.c index 754d321..11e86c5 100644 --- a/src/update.c +++ b/src/update.c @@ -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, ¤t_stat, &unused, 0); + decode_header (current_header, ¤t_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;