Skip to content

Commit a5b4f14

Browse files
committed
try normalizing temp
1 parent 160b116 commit a5b4f14

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

libs/entitlement/src/main/java/org/elasticsearch/entitlement/runtime/policy/FileAccessTree.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,9 @@ private FileAccessTree(FilesEntitlement filesEntitlement, PathLookup pathLookup)
4242
}
4343

4444
// everything has access to the temp dir
45-
readPaths.add(pathLookup.tempDir().toString());
46-
writePaths.add(pathLookup.tempDir().toString());
45+
String tempDir = normalizePath(pathLookup.tempDir());
46+
readPaths.add(tempDir);
47+
writePaths.add(tempDir);
4748

4849
readPaths.sort(String::compareTo);
4950
writePaths.sort(String::compareTo);

0 commit comments

Comments
 (0)