RFR: 8322881: Method createTempFile() causes file copy permission issue when running through jtreg

Brian Burkhalter bpb at openjdk.org
Wed Jan 3 04:05:46 UTC 2024


On Wed, 3 Jan 2024 03:42:17 GMT, yaqsun <duke at openjdk.org> wrote:

> Method createTempFile() creates "/tmp/file*" directory that it causes file copy permission issue when running through jtreg.

The method call `Files.createTempFile("file", "dat")` creates a file named "fileXdat" in the default temporary file directory "/tmp" where `X` denotes a large integer. It does not create a directory per se. Could this problem instead be due to permissions on the default temporary file directory "/tmp" on the test system involved?

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

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


More information about the nio-dev mailing list