]> git.ipfire.org Git - thirdparty/coreutils.git/commit
cp: streamline cloning by skipping fstat
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 21 Nov 2021 20:31:07 +0000 (12:31 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 21 Nov 2021 20:32:46 +0000 (12:32 -0800)
commit41bec08d7a8727d56cf982c3a75255576c8cef4f
tree3a54d88fcce3675ed9e6ba40ec56abdec40bc412
parent5012223d78b8dc40159c30b391e2ce257f465bcd
cp: streamline cloning by skipping fstat

* src/copy.c (copy_reg): Attempt clone_file before fstat of dest,
so that if clone_file succeeds we can skip the fstat.
src/copy.c