From: Sergey Poznyakoff Date: Tue, 17 Feb 2004 13:33:14 +0000 (+0000) Subject: Minor changes X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=67d29a4d60e79a6c7604a9940f69951ec9c5ba94;p=chaz%2Ftar Minor changes --- diff --git a/src/update.c b/src/update.c index f98dbb0..d2dcf2c 100644 --- a/src/update.c +++ b/src/update.c @@ -126,14 +126,15 @@ update_archive (void) struct name *name; 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; enum archive_format unused; decode_header (current_header, ¤t_stat_info, &unused, 0); 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) add_avoided_name (current_stat_info.file_name); } @@ -183,7 +184,7 @@ update_archive (void) { char *path; - while (path = name_from_list (), path) + while ((path = name_from_list ()) != NULL) { if (excluded_name (path)) continue;