8314491: Linux: jexec launched via PATH fails to find java
authorVladimir Petko <vladimir.petko@canonical.com>
Wed, 17 Apr 2024 12:24:58 +0000 (14:24 +0200)
committerMatthias Klose <doko@ubuntu.com>
Wed, 17 Apr 2024 12:24:58 +0000 (14:24 +0200)
commit5daaf2e0fe9f0a0229100d7f4d6326ca003370d2
tree9c07f0548cee54278801227adcd8592b9efd9a1c
parent5accb978252ecc02d7ede6d5d5d33cbe390153ca
8314491: Linux: jexec launched via PATH fails to find java

Bug: https://github.com/openjdk/jdk/pull/15343
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1029342
Applied-Upstream: dab1c213fd2760686a7bf3fc8838f4a21056a954
Last-Update: 2023-09-11

 jexec uses argv[0] parameter to find its own location.
 argv[0] is populated with the command value causing a failure to locate java
 when jexec is found in the PATH (in this case argv[0] contains just 'jexec')

Gbp-Pq: Name 8314491-jexec.patch
src/java.base/unix/native/launcher/jexec.c
test/jdk/tools/launcher/Jexec.java