X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fcompare.c;h=02240aa3bf953797e926ce920e181b1e888b8b4b;hb=3209329337c87a102fa12d7eb60a3df323ba56c1;hp=98a953bf403aa524ead280729c106f1379fd1e35;hpb=2f800ce3fb9c38360e1b6dac70ee0d8ceae72c6a;p=chaz%2Ftar diff --git a/src/compare.c b/src/compare.c index 98a953b..02240aa 100644 --- a/src/compare.c +++ b/src/compare.c @@ -224,7 +224,7 @@ diff_file (void) if (!sys_compare_gid (&stat_data, ¤t_stat_info.stat)) report_difference (¤t_stat_info, _("Gid differs")); - if (stat_data.st_mtime != current_stat_info.stat.st_mtime) + if (timespec_cmp (get_stat_mtime (&stat_data), current_stat_info.mtime)) report_difference (¤t_stat_info, _("Mod time differs")); if (current_header->header.typeflag != GNUTYPE_SPARSE && stat_data.st_size != current_stat_info.stat.st_size)