0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-11 23:00:52 +00:00
termux-packages/packages/openjdk-21/0039-Fix-hardcoded-paths-in-jdk.attach.patch
Fredrik Fornwall 5228812646 fix(main/openjdk-21): Fix hardcoded paths in jdk.attach
As done in 94fd264d841e197c64e3cddc074a0ee3533dde3f for openjdk-17.

See issue #21327.
2024-10-17 14:02:06 +02:00

23 lines
1.1 KiB
Diff

From e7570675c4db70ea7314ae342def2445b0eea3c8 Mon Sep 17 00:00:00 2001
From: Chongyun Lee <45286352+licy183@users.noreply.github.com>
Date: Tue, 3 Sep 2024 12:34:31 +0800
Subject: [PATCH] Fix: hardcoded paths in jdk.attach
---
.../linux/classes/sun/tools/attach/VirtualMachineImpl.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/jdk.attach/linux/classes/sun/tools/attach/VirtualMachineImpl.java b/src/jdk.attach/linux/classes/sun/tools/attach/VirtualMachineImpl.java
index a5d743a2635..3d32c514f54 100644
--- a/src/jdk.attach/linux/classes/sun/tools/attach/VirtualMachineImpl.java
+++ b/src/jdk.attach/linux/classes/sun/tools/attach/VirtualMachineImpl.java
@@ -46,7 +46,7 @@ public class VirtualMachineImpl extends HotSpotVirtualMachine {
// location is the same for all processes, otherwise the tools
// will not be able to find all Hotspot processes.
// Any changes to this needs to be synchronized with HotSpot.
- private static final String tmpdir = "/tmp";
+ private static final String tmpdir = "@TERMUX_PREFIX@/tmp";
String socket_path;
/**
* Attaches to the target VM