Index: head/contrib/libarchive/cpio/cpio.c =================================================================== --- head/contrib/libarchive/cpio/cpio.c +++ head/contrib/libarchive/cpio/cpio.c @@ -1140,7 +1140,8 @@ else fmt = cpio->day_first ? "%d %b %H:%M" : "%b %d %H:%M"; #else - if (abs(mtime - now) > (365/2)*86400) + if (mtime - now > 365*86400/2 + || mtime - now < -365*86400/2) fmt = cpio->day_first ? "%e %b %Y" : "%b %e %Y"; else fmt = cpio->day_first ? "%e %b %H:%M" : "%b %e %H:%M";