mariadb/extra
Alexey Yurchenko 203d337a55 MDEV-25321 mariabackup ignores MYSQL_PWD variable
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>
2024-06-10 23:25:59 +02:00
..
aws_sdk MDEV-23539: aws key plugin - fails to build 2020-10-26 14:59:42 +11:00
mariabackup MDEV-25321 mariabackup ignores MYSQL_PWD variable 2024-06-10 23:25:59 +02:00
readline Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
wolfssl Merge branch '11.2' into 11.4 2024-05-21 19:38:51 +02:00
charset2html.c Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
CMakeLists.txt Merge branch '10.11' into 11.0 2024-05-12 12:18:28 +02:00
comp_err.c MDEV-30810 errmsg-utf8.txt no longer uses charsets 2023-03-10 08:53:58 +11:00
innochecksum.cc Merge branch '10.11' into 11.0 2023-08-09 07:53:48 +02:00
my_print_defaults.c Merge 10.11 into 11.0 2023-12-20 16:05:20 +02:00
mysql_waitpid.c MDEV-29582 post-review fixes 2023-02-10 10:45:25 +01:00
mysqld_safe_helper.c
perror.c unify client/tool version string 2023-01-19 12:39:28 +01:00
replace.c unify client/tool version string 2023-01-19 12:39:28 +01:00
resolve_stack_dump.c unify client/tool version string 2023-01-19 12:39:28 +01:00
resolveip.c unify client/tool version string 2023-01-19 12:39:28 +01:00