]> git.ipfire.org Git - thirdparty/coreutils.git/commit
cp: simplify infer_scantype
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 10 Feb 2023 03:10:47 +0000 (19:10 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 10 Feb 2023 03:54:20 +0000 (19:54 -0800)
commitd374d32ccf12f8cf33c8f823d573498b7c8b27a4
tree32b943c4a862bc5b0cfdca5829dd0d3aee9afdf1
parentd195e3863cdba55bd851dac44dbf4f0bcb89a4fe
cp: simplify infer_scantype

* src/copy.c (infer_scantype): Do not set *SCAN_INFERENCE
when returning a value other than LSEEK_SCANTYPE.
This is just minor refactoring; it simplifies the code a bit.
Callers are uneffected.

doc: document --preserve=mode better
src/copy.c