Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
dc4f8451
Commit
dc4f8451
authored
Dec 02, 2004
by
konstantin@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for Bug#6377 "Password Generation Discrepancy"
parent
3b111a9b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
client/mysqladmin.cc
client/mysqladmin.cc
+9
-2
No files found.
client/mysqladmin.cc
View file @
dc4f8451
...
...
@@ -825,10 +825,17 @@ static int execute_commands(MYSQL *mysql,int argc, char **argv)
}
if
(
argv
[
1
][
0
])
{
char
*
pw
=
argv
[
1
];
#ifdef __WIN__
uint
pw_len
=
strlen
(
pw
);
if
(
pw_len
>
1
&&
pw
[
0
]
==
'\''
&&
pw
[
pw_len
-
1
]
==
'\''
)
printf
(
"Warning: single quotes were not trimmed from the password by"
" your command
\n
line client, as you might have expected.
\n
"
);
#endif
if
(
find_type
(
argv
[
0
],
&
command_typelib
,
2
)
==
ADMIN_OLD_PASSWORD
)
make_scrambled_password_323
(
crypted_pw
,
argv
[
1
]
);
make_scrambled_password_323
(
crypted_pw
,
pw
);
else
make_scrambled_password
(
crypted_pw
,
argv
[
1
]
);
make_scrambled_password
(
crypted_pw
,
pw
);
}
else
crypted_pw
[
0
]
=
0
;
/* No password */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment