-
Alexey Yurchenko authored
If mariabackup does not get the password on command line or from the [mariabackup] section of the config file, it initializes the internal opt_password variable to empty string and considers it as set in a subsequent check, therefore ignoring the value of MYSQL_PWD envronment variable. At the same time MariDB server considers empty string passwords as no password. Fixing this is necessary to use automatically generated SST users because mariabackup needs --default-file option to use the same config as the server and that option does not allow to supply any extra config files, so using the automatically generated config with [mariabackup] section is out of question. Modify check for set password to treat empty string as unset and fall back to the MYSQL_PWD value if present. Signed-off-by:
Julius Goryavsky <julius.goryavsky@mariadb.com>
203d337a