-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
openjdk-17: fix hardcoded paths in jdk.attach
- Loading branch information
Showing
2 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
packages/openjdk-17/0042-Fix-hardcoded-paths-in-jdk.attach.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
From e7570675c4db70ea7314ae342def2445b0eea3c8 Mon Sep 17 00:00:00 2001 | ||
From: Chongyun Lee <[email protected]> | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters