mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 03:47:17 +02:00
Basically minor code optimizations and cleanups
client/mysqladmin.c: fix folding libmysql/libmysql.c: Minor optimizations sql/mini_client.cc: Minor optimizations sql/password.c: Optimiations sql/sql_acl.cc: Get rid of stage parameter and flag old passwords with '*' instead of zero sql/sql_acl.h: fix prototype sql/sql_parse.cc: Minor optimizations
This commit is contained in:
parent
d318b4b857
commit
339cf7ce7b
7 changed files with 76 additions and 59 deletions
|
|
@ -768,9 +768,9 @@ static int execute_commands(MYSQL *mysql,int argc, char **argv)
|
|||
return 1;
|
||||
}
|
||||
if (argv[1][0])
|
||||
make_scrambled_password(crypted_pw,argv[1],(find_type(argv[0],
|
||||
&command_typelib,2)==ADMIN_OLD_PASSWORD),
|
||||
&rand_st);
|
||||
make_scrambled_password(crypted_pw,argv[1],
|
||||
(find_type(argv[0], &command_typelib, 2) ==
|
||||
ADMIN_OLD_PASSWORD), &rand_st);
|
||||
else
|
||||
crypted_pw[0]=0; /* No password */
|
||||
sprintf(buff,"set password='%s',sql_log_off=0",crypted_pw);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue