Skip to content

SystemTools: CopyFileAlways: avoid copying file over self

Brad King requested to merge brad.king/kwsys:SystemTools-copy-self into master

Since !116 (merged) on Linux copying a file over itself by specifying . as the destination leaves behind an empty file. This has long occurred on Windows too. Move our existing same-file check to after we know the real destination file.

Edited by Brad King

Merge request reports