summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2022-06-09 15:50:06 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2022-06-09 15:50:42 -0700
commitc1027eb5aee7b2a942c601ef6cdb1b132da83225 (patch)
tree7dc649e589aec21fcef998e5bf43b367a267a9ac /tests
parentbc7e758b275aeb6c34e9a3801054ba63e1a53d72 (diff)
downloadtar-c1027eb5aee7b2a942c601ef6cdb1b132da83225.tar.gz
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.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions