Minor changes
This commit is contained in:
@@ -126,14 +126,15 @@ update_archive (void)
|
|||||||
struct name *name;
|
struct name *name;
|
||||||
|
|
||||||
if (subcommand_option == UPDATE_SUBCOMMAND
|
if (subcommand_option == UPDATE_SUBCOMMAND
|
||||||
&& (name = name_scan (current_stat_info.file_name), name))
|
&& (name = name_scan (current_stat_info.file_name)) != NULL)
|
||||||
{
|
{
|
||||||
struct stat s;
|
struct stat s;
|
||||||
enum archive_format unused;
|
enum archive_format unused;
|
||||||
|
|
||||||
decode_header (current_header, ¤t_stat_info, &unused, 0);
|
decode_header (current_header, ¤t_stat_info, &unused, 0);
|
||||||
chdir_do (name->change_dir);
|
chdir_do (name->change_dir);
|
||||||
if (deref_stat (dereference_option, current_stat_info.file_name, &s) == 0
|
if (deref_stat (dereference_option,
|
||||||
|
current_stat_info.file_name, &s) == 0
|
||||||
&& s.st_mtime <= current_stat_info.stat.st_mtime)
|
&& s.st_mtime <= current_stat_info.stat.st_mtime)
|
||||||
add_avoided_name (current_stat_info.file_name);
|
add_avoided_name (current_stat_info.file_name);
|
||||||
}
|
}
|
||||||
@@ -183,7 +184,7 @@ update_archive (void)
|
|||||||
{
|
{
|
||||||
char *path;
|
char *path;
|
||||||
|
|
||||||
while (path = name_from_list (), path)
|
while ((path = name_from_list ()) != NULL)
|
||||||
{
|
{
|
||||||
if (excluded_name (path))
|
if (excluded_name (path))
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user