Skip to content

Commit 86aa0a7

Browse files
committed
in VFS.toAbsolutePath directly throw SecerityException if no host IO
1 parent 6060f3f commit 86aa0a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graalpython/org.graalvm.python.embedding/src/org/graalvm/python/embedding/utils/VirtualFileSystemImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,7 @@ public Path toAbsolutePath(Path path) {
847847
Path result = toAbsolutePathInternal(path);
848848
if (!pathIsInVfs(result)) {
849849
if (allowHostIO == NONE) {
850-
delegate.toAbsolutePath(path);
850+
throw securityException("VFS.toAbsolutePath", String.format("filesystem without host IO: '%s'path", path));
851851
}
852852
} else {
853853
if (shouldExtract(result)) {

0 commit comments

Comments
 (0)