mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[platform] updater temp. directory sanity check (EA-96629)
This commit is contained in:
@@ -111,6 +111,9 @@ object UpdateInstaller {
|
||||
val jnaUtils = findLib("jna-platform.jar")
|
||||
|
||||
val tempDir = getTempDir()
|
||||
if (FileUtil.isAncestor(PathManager.getHomePath(), tempDir.path, true)) {
|
||||
throw IOException("Temp directory inside installation: $tempDir")
|
||||
}
|
||||
if (!(tempDir.exists() || tempDir.mkdirs())) {
|
||||
throw IOException("Cannot create temp directory: $tempDir")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user