[Issue 15865] std.file.copy(from, to) deletes the file if from and to specify the same file

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Apr 4 09:51:20 PDT 2016


https://issues.dlang.org/show_bug.cgi?id=15865

--- Comment #2 from github-bugzilla at puremagic.com ---
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

--


More information about the Digitalmars-d-bugs mailing list