This is an automated email from the ASF dual-hosted git repository.
ChristopherSchultz pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push:
new 905ff7890d Avoid re-evaluation of invocation parameters
905ff7890d is described below
commit 905ff7890dc8ec077963223b092faf67cf38def2
Author: Christopher Schultz <[email protected]>
AuthorDate: Tue Oct 20 08:20:34 2026 -0400
Avoid re-evaluation of invocation parameters
---
bin/tool-wrapper.sh | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/bin/tool-wrapper.sh b/bin/tool-wrapper.sh
index 5a7f4b2860..aeeaa0d8b5 100755
--- a/bin/tool-wrapper.sh
+++ b/bin/tool-wrapper.sh
@@ -126,7 +126,9 @@ JAVA_OPTS="$JAVA_OPTS
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLog
# ----- Execute The Requested Command -----------------------------------------
-eval exec "\"$_RUNJAVA\"" "$JAVA_OPTS" "$TOOL_OPTS" \
- -classpath "\"$CLASSPATH\"" \
- -Dcatalina.home="\"$CATALINA_HOME\"" \
- org.apache.catalina.startup.Tool "$@"
+eval "set -- $JAVA_OPTS $TOOL_OPTS \
+ -classpath \"\$CLASSPATH\" \
+ -Dcatalina.home=\"\$CATALINA_HOME\" \
+ org.apache.catalina.startup.Tool \"\$@\""
+
+exec "$_RUNJAVA" "$@"
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]