Integrated: 8073061: (fs) Files.copy(foo, bar, REPLACE_EXISTING) deletes bar even if foo is not readable

Brian Burkhalter bpb at openjdk.org
Tue Sep 26 15:31:27 UTC 2023


On Thu, 31 Aug 2023 00:18:22 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

> Check that the source is readable before deleting the destination.

This pull request has now been integrated.

Changeset: 36ac8390
Author:    Brian Burkhalter <bpb at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/36ac83904c9e81a01822b0e36ef677cae2808709
Stats:     322 lines in 5 files changed: 308 ins; 8 del; 6 mod

8073061: (fs) Files.copy(foo, bar, REPLACE_EXISTING) deletes bar even if foo is not readable

Reviewed-by: alanb

-------------

PR: https://git.openjdk.org/jdk/pull/15501


More information about the nio-dev mailing list