summaryrefslogtreecommitdiff
path: root/scripts/mysql_install_db.sh
diff options
context:
space:
mode:
authorunknown <tsmith@quadxeon.mysql.com>2007-04-25 09:16:38 +0200
committerunknown <tsmith@quadxeon.mysql.com>2007-04-25 09:16:38 +0200
commitb81fc0d5daf5b6fc85b4d209f38c162ec36ecd91 (patch)
tree1f68cef86cf1a37ffb9daed2844b04ce128db51f /scripts/mysql_install_db.sh
parent656003c2707ed2cb8fe38d4305e011742a978203 (diff)
downloadmariadb-git-b81fc0d5daf5b6fc85b4d209f38c162ec36ecd91.tar.gz
mysql_install_db.sh:
Disable broken quoting of extra arguments; proper fix requires using eval and lots more quoting throughout the script scripts/mysql_install_db.sh: Disable broken quoting of extra arguments; proper fix requires using eval and lots more quoting throughout the script
Diffstat (limited to 'scripts/mysql_install_db.sh')
-rw-r--r--scripts/mysql_install_db.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/mysql_install_db.sh b/scripts/mysql_install_db.sh
index 63995eb1575..f90e99ec468 100644
--- a/scripts/mysql_install_db.sh
+++ b/scripts/mysql_install_db.sh
@@ -79,7 +79,10 @@ parse_arguments() {
then
# This sed command makes sure that any special chars are quoted,
# so the arg gets passed exactly to the server.
- args="$args "`echo "$arg" | sed -e 's,\([^a-zA-Z0-9_.-]\),\\\\\1,g'`
+ # XXX: This is broken; true fix requires using eval and proper
+ # quoting of every single arg ($basedir, $ldata, etc.)
+ #args="$args "`echo "$arg" | sed -e 's,\([^a-zA-Z0-9_.-]\),\\\\\1,g'`
+ args="$args $arg"
fi
;;
esac