X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fcompare.c;h=273269a140916af81a9e2c0515bace0658e254fb;hb=881e5626c5db79d825a45ba15aecec9087bcd8b9;hp=91ced57031925ddce030a4df2dc7f1d8decd4452;hpb=67ae04ba3177328695575fccf2f3614b9531c255;p=chaz%2Ftar diff --git a/src/compare.c b/src/compare.c index 91ced57..273269a 100644 --- a/src/compare.c +++ b/src/compare.c @@ -234,7 +234,8 @@ diff_file (void) else read_and_process (¤t_stat_info, process_rawdata); - if (atime_preserve_option == replace_atime_preserve) + if (atime_preserve_option == replace_atime_preserve + && stat_data.st_size != 0) { struct timespec atime = get_stat_atime (&stat_data); if (set_file_atime (diff_handle, chdir_fd, file_name, atime) @@ -528,7 +529,7 @@ verify_volume (void) if (may_fail) WARN((0, 0, _("Verification may fail to locate original files."))); - + if (!diff_buffer) diff_init ();