mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8289984: Files:isDirectory and isRegularFile methods not throwing SecurityException
Reviewed-by: iris, alanb
This commit is contained in:
parent
1877533f75
commit
6aaf141f61
2 changed files with 11 additions and 2 deletions
|
@ -156,6 +156,7 @@ public abstract class UnixFileSystemProvider
|
|||
{
|
||||
if (type == BasicFileAttributes.class && Util.followLinks(options)) {
|
||||
UnixPath file = UnixPath.toUnixPath(path);
|
||||
file.checkRead();
|
||||
try {
|
||||
@SuppressWarnings("unchecked")
|
||||
A attrs = (A) UnixFileAttributes.getIfExists(file);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue