[Bug 228069] tar(1) fails to append newer files only (-u, --update), but always appends all files (like -r).

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 17 Sep 2024 05:12:09 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=228069

titus m <titus@edc.ro> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |titus@edc.ro

--- Comment #1 from titus m <titus@edc.ro> ---
the problem comes from the fact that tar file format (ustar/default) does not
support fractional file timestamps and the file system does. so the files on
the filesystem having most likeley a fractional mtime will always appear to be
newer than the ones in the archive. A work-around is to use pax (or fix
libarchive to compare mtime_nanoseconds only when archive->format is "pax")

-- 
You are receiving this mail because:
You are the assignee for the bug.