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

yaqsun duke at openjdk.org
Mon Feb 26 20:50:48 UTC 2024


On Wed, 3 Jan 2024 03:42:17 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.
> 
> The method call `Files.move(source, target, options)` by Regular User causes AccessDeniedException due to ` /tmp/file*` is created 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).

This pull request has now been integrated.

Changeset: bf13a4e2
Author:    sunyaqi <sunyaqi at loongson.cn>
Committer: Brian Burkhalter <bpb at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/bf13a4e2819fa5bcb3e4f2281121d4e0b5535403
Stats:     11 lines in 1 file changed: 1 ins; 0 del; 10 mod

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

Reviewed-by: bpb

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

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


More information about the nio-dev mailing list