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

Brian Burkhalter bpb at openjdk.org
Thu Sep 7 16:52:10 UTC 2023


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

Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:

  8073061: R_OK|W_OK -> R_OK in move source access check

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/15501/files
  - new: https://git.openjdk.org/jdk/pull/15501/files/e226096d..65009624

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=15501&range=03
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=15501&range=02-03

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/15501.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/15501/head:pull/15501

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


More information about the nio-dev mailing list