This is an automated email from the ASF dual-hosted git repository.

ChristopherSchultz pushed a commit to branch 11.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/11.0.x by this push:
     new b567f6c5ad Avoid re-evaluation of command-line arguments
b567f6c5ad is described below

commit b567f6c5adc3d0e066fb8a5c13f3ef503658878a
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        | 10 ++++++----
 webapps/docs/changelog.xml |  8 ++++++--
 2 files changed, 12 insertions(+), 6 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" "$@"
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index c515763290..0d4e0e7947 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -662,13 +662,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]

Reply via email to