mirror of
https://github.com/MariaDB/server.git
synced 2025-11-21 06:21:35 +03:00
with embedded spaces Problem: Original code written assuming password contains no spaces. Further, because of how sh interprets characters in variables, you cannot do the "simple solution". Solution: Move the "was a password provided" check to the end. This allows us to correctly quote the password argument when passed to the mysql client program. Addendum: Put this check inside of a shell fn to simplify the code. scripts/mysql_fix_privilege_tables.sh: Moved password existence check to end to allow for passwords with with embedded spaces.
5.0 KiB
5.0 KiB