diff options
author | Sergei Golubchik <sergii@pisem.net> | 2012-01-12 20:12:14 +0100 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2012-01-12 20:12:14 +0100 |
commit | 3c1125d4cafdf352ea84d2ff8e06738c4aec2156 (patch) | |
tree | 1696892d5804e1cad9a83b64efb31bb14e08222b /plugin/auth_pam | |
parent | b8b7b4eb6bef26d05257272be02674ae5514ded9 (diff) | |
download | mariadb-git-3c1125d4cafdf352ea84d2ff8e06738c4aec2156.tar.gz |
fixes for get_password():
1. on windows: don't hang when there's no console, that is, _getch() returns -1.
2. on windows: _getch() returns an int, not char.
to distinguish between (char)255 and (int)-1
3. everywhere. isspace(pos[-1]) == ' ' never worked,
isspace() returns a boolean, not a char. the never-worked loop was
removed to preserve the existing behavior.
Diffstat (limited to 'plugin/auth_pam')
0 files changed, 0 insertions, 0 deletions