Charles Lepple wrote: > On 3/3/07, Martin Costabel <[EMAIL PROTECTED]> wrote: >> Charles Lepple wrote: >> > Martin, >> > >> > I'd be curious to see how far those ctimes are from the current >> > time(). Can you post your patch? >> >> They are just printed out with format %i. To get the real time, you can >> run these numbers through "/bin/date -r": > > I figured that's where they were coming from. I was asking for the > patch because I didn't want to dig into the guts of tar if you already > had :-)
Here it is: % diff -u tar-1.16.1/src/create.c tar-1.16.1_mod/src/create.c --- tar-1.16.1/src/create.c 2006-12-07 14:49:48.000000000 +0100 +++ tar-1.16.1_mod/src/create.c 2007-03-03 08:50:25.000000000 +0100 @@ -1622,8 +1622,9 @@ if (timespec_cmp (get_stat_ctime (&final_stat), original_ctime) != 0 || original_size < final_stat.st_size) { - WARN ((0, 0, _("%s: file changed as we read it"), - quotearg_colon (p))); + WARN ((0, 0, _("%s: file changed as we read it\n=====\nOld ctime: %i %i\nNew ctime: %i %i\nOld size : %i %i\nNew size : %i %i\n=====\n"), + quotearg_colon (p)\ + , original_ctime, get_stat_ctime (&final_stat), original_size, final_stat.st_size)); if (exit_status == TAREXIT_SUCCESS) exit_status = TAREXIT_DIFFERS; } -- Martin ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Fink-devel mailing list Fink-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-devel