summaryrefslogtreecommitdiff
path: root/client/mysqladmin.c
diff options
context:
space:
mode:
authorpeter@mysql.com <>2002-11-30 16:31:58 +0300
committerpeter@mysql.com <>2002-11-30 16:31:58 +0300
commit54ff0efe7cb79c2f3e7acc84f74905d750e51ba0 (patch)
tree8cb72ffc1f46d5e546f302958453ce4a83d26d5e /client/mysqladmin.c
parent08f51eaedd8fb15eb629614af323d3cdc64dace1 (diff)
downloadmariadb-git-54ff0efe7cb79c2f3e7acc84f74905d750e51ba0.tar.gz
SCRUM: Secure auth
Implement mysql_change_user Get rid of double user search at authentication Some cleanups
Diffstat (limited to 'client/mysqladmin.c')
-rw-r--r--client/mysqladmin.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/client/mysqladmin.c b/client/mysqladmin.c
index 925e67978bf..21169f1b526 100644
--- a/client/mysqladmin.c
+++ b/client/mysqladmin.c
@@ -768,8 +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);