This is an automated email from the ASF dual-hosted git repository.
ChristopherSchultz pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new b4488da4a0 Avoid re-evaluation of command-line arguments
b4488da4a0 is described below
commit b4488da4a01379256ea4b921d695d643abe44e5f
Author: Christopher Schultz <[email protected]>
AuthorDate: Tue Oct 20 08:22:57 2026 -0400
Avoid re-evaluation of command-line arguments
---
bin/tool-wrapper.sh | 12 +++++++-----
webapps/docs/changelog.xml | 8 ++++++--
2 files changed, 13 insertions(+), 7 deletions(-)
diff --git a/bin/tool-wrapper.sh b/bin/tool-wrapper.sh
index 863ca496cd..894b453697 100755
--- a/bin/tool-wrapper.sh
+++ b/bin/tool-wrapper.sh
@@ -146,8 +146,10 @@ JAVA_OPTS="$JAVA_OPTS
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLog
# ----- Execute The Requested Command -----------------------------------------
-eval exec "\"$_RUNJAVA\"" "$JAVA_OPTS" "$TOOL_OPTS" \
- -D$ENDORSED_PROP="\"$JAVA_ENDORSED_DIRS\"" \
- -classpath "\"$CLASSPATH\"" \
- -Dcatalina.home="\"$CATALINA_HOME\"" \
- org.apache.catalina.startup.Tool "$@"
+eval "set -- $JAVA_OPTS $TOOL_OPTS \
+ -D$ENDORSED_PROP=\"\$JAVA_ENDORSED_DIRS\" \
+ -classpath \"\$CLASSPATH\" \
+ -Dcatalina.home=\"\$CATALINA_HOME\" \
+ org.apache.catalina.startup.Tool \"\$@\""
+
+exec "$_RUNJAVA" "$@"
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index b8aac46514..3b2deec1dc 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -653,13 +653,17 @@
<subsection name="Other">
<changelog>
<update>
- Bump spotbugs to 4.10.4.
+ Bump spotbugs to 4.10.4. (schultz)
</update>
<update>
<bug>69902</bug>: Change the ZIP distribution to store the same file
and directory permissions as the tar.gz distribution so that the
scripts in <code>bin</code> are executable when the archive is
- extracted on a Unix platform.
+ extracted on a Unix platform. (schultz)
+ </update>
+ <update>
+ Avoid re-evaluation of command-line arguments in tool-wrapper.sh.
+ (schultz)
</update>
</changelog>
</subsection>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]