kafka-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ij...@apache.org
Subject [kafka] branch trunk updated: MINOR: Double quote `CLASSPATH` to prevent shell glob expansion. (#8191)
Date Sat, 29 Feb 2020 23:13:25 GMT
This is an automated email from the ASF dual-hosted git repository.

ijuma pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/kafka.git

The following commit(s) were added to refs/heads/trunk by this push:
     new 0d83894  MINOR: Double quote `CLASSPATH` to prevent shell glob expansion. (#8191)
0d83894 is described below

commit 0d83894feca98ef69fccc49dce290471c1a6104d
Author: Ego <aegelhofer@confluent.io>
AuthorDate: Sat Feb 29 15:13:00 2020 -0800

    MINOR: Double quote `CLASSPATH` to prevent shell glob expansion. (#8191)
    In the event that `CLASSPATH` does not have an ending ":", the shell
    can expand the CLASSPATH globs to be space-separated list of paths/jars,
    which is not how the JVM CLI accepts arguments to -cp switch. So
    double quote the variable to prevent pattern expansion, and pass the
    glob pattern directly to the JVM.
    Reviewers: Ismael Juma <ismael@juma.me.uk>
 bin/kafka-run-class.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/kafka-run-class.sh b/bin/kafka-run-class.sh
index 09f6997..914690e 100755
--- a/bin/kafka-run-class.sh
+++ b/bin/kafka-run-class.sh
@@ -313,7 +313,7 @@ CLASSPATH=${CLASSPATH#:}
 # Launch mode
 if [ "x$DAEMON_MODE" = "xtrue" ]; then
< /dev/null &
< /dev/null &

View raw message