RFR: 8322881: java/nio/file/Files/CopyMoveVariations.java fails with AccessDeniedException due to permissions of files in /tmp

Alan Bateman alanb at openjdk.org
Sun Feb 18 08:20:53 UTC 2024


On Sun, 18 Feb 2024 03:26:40 GMT, yaqsun <duke at openjdk.org> wrote:

> Please review my pr. 

I don't think the exchange so far has clearly established the issue. It is likely related to the permissions on /tmp on this system but maybe there is a umask setting in the picture too. In any case, I think it's better if this test uses the work directory rather than /tmp.  You'll need to change the static initializer where it first tests if underlying file store support POSIX file permissions. Also in the op method it would be nicer if you used something like `Path dir = Path.of(".");` so you have a Path to the directory for the 4 places that use it.

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

PR Comment: https://git.openjdk.org/jdk/pull/17235#issuecomment-1951001166


More information about the nio-dev mailing list