From 4985fcc86f8b28887c5ed41e538354ab07cb6f70 Mon Sep 17 00:00:00 2001 From: Carl Yeksigian Date: Thu, 18 Feb 2016 15:48:54 -0500 Subject: [PATCH] cqlsh cannot be called through symlink patch by Benjamin Zarzycki; reviewed by Carl Yeksigian for CASSANDRA-11037 --- CHANGES.txt | 1 + bin/cqlsh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.txt b/CHANGES.txt index 10f23afe66..d3dcdbc55b 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,4 +1,5 @@ 2.2.6 + * (cqlsh) cqlsh cannot be called through symlink (CASSANDRA-11037) * fix ohc and java-driver pom dependencies in build.xml (CASSANDRA-10793) * Protect from keyspace dropped during repair (CASSANDRA-11065) * Handle adding fields to a UDT in SELECT JSON and toJson() (CASSANDRA-11146) diff --git a/bin/cqlsh b/bin/cqlsh index 5594f8212e..89d094fb68 100755 --- a/bin/cqlsh +++ b/bin/cqlsh @@ -16,4 +16,4 @@ # limitations under the License. -python "`dirname "$0"`/cqlsh.py" "$@" +python "`python -c "import os;print(os.path.dirname(os.path.realpath('$0')))"`/cqlsh.py" "$@"