Skip to content
Snippets Groups Projects
Commit 92334e76 authored by Brad King's avatar Brad King
Browse files

SystemTools: CopyFileAlways: avoid copying file over self

Since commit 228c60b8 (SystemTools: CopyFileAlways: try to create a
cheap CoW clone first, 2018-12-07) 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.
parent fd41ac36
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment