https://issues.dlang.org/show_bug.cgi?id=15865
--- Comment #2 from [email protected] --- Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/fad13881996fabbf06704ac5a42b0f843f54630c fix Issue 15865 - std.file.copy(from,to) deletes the file if from and to specify the same file Stat the target fd and check for sameness before truncating the file. https://github.com/D-Programming-Language/phobos/commit/df99fc87075c46cefb4a6a6052056b833fb93c93 Merge pull request #4148 from CyberShadow/pull-20160404-141544 fix Issue 15865 - std.file.copy(from,to) deletes the file if from and to specify the same file --
