]> git.ipfire.org Git - thirdparty/tar.git/commit
Warn “file changed as we read it” less often
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 9 Jun 2022 22:50:06 +0000 (15:50 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 9 Jun 2022 22:50:42 +0000 (15:50 -0700)
commitc1027eb5aee7b2a942c601ef6cdb1b132da83225
tree7dc649e589aec21fcef998e5bf43b367a267a9ac
parentbc7e758b275aeb6c34e9a3801054ba63e1a53d72
Warn “file changed as we read it” less often

* src/create.c (dump_file0): Remove an fstatat call that is
unnecessary because the file wasn’t read so we can treat the first
fstatat as atomic.  Warn “file changed” when the file’s size,
mtime, user ID, group ID, or mode changes, instead of when the
file’s size or ctime changes.  Also, when such a change happens,
do not change exit status if --ignore-failed-read.  Finally, don’t
attempt to change atime back if it didn’t change.
NEWS
doc/tar.texi
src/create.c