RFR: 8322881: java/nio/file/Files/CopyMoveVariations.java fails with AccessDenieException due to permissions of files in /tmp
Brian Burkhalter
bpb at openjdk.org
Wed Jan 3 19:59:25 UTC 2024
On Wed, 3 Jan 2024 04:35:09 GMT, yaqsun <duke at openjdk.org> wrote:
>> testcase: java/nio/file/Files/CopyMoveVariations.java
>>
>> Method createTempFile() creates "/tmp/file*" that it causes file copy permission issue when running through jtreg.
>>
>> Create files for method "createTempFile()" passing in the current path(jtreg_test_jdk_java_nio_file_Files_CopyMoveVariations_java/scratch or JTwork/scratch).
>
>> > Method createTempFile() creates "/tmp/file*" directory that it causes file copy permission issue when running through jtreg.
>>
>> Could this problem instead be due to permissions on the default temporary file directory "/tmp" on the test system involved?
>
> Yes, the default temporary file directory "/tmp" causes permission issues.
@yaqsun Sorry, but I corrected a typo in the issue title so you will again need to change the title of this request to match.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/17235#issuecomment-1875893155
More information about the nio-dev
mailing list