diff options
author | unknown <monty@mysql.com/narttu.mysql.fi> | 2007-01-30 13:52:26 +0200 |
---|---|---|
committer | unknown <monty@mysql.com/narttu.mysql.fi> | 2007-01-30 13:52:26 +0200 |
commit | 6e501e6548f15d3450ffb122ba1e683f40a4c917 (patch) | |
tree | 62763e5b2b8fc594a6350438d3424ff872a91c85 /sql/sql_parse.cc | |
parent | 721e412854cc701b9a23c0a3ca2b84c936877bc2 (diff) | |
download | mariadb-git-6e501e6548f15d3450ffb122ba1e683f40a4c917.tar.gz |
Fixed problems detected by pushbuild
mysql-test/t/log_state.test:
Move disconnect last to avoid sporadic failures in test because 'Quit' command appeared in general log
plugin/daemon_example/daemon_example.c:
Define __attribute__ to fix compiler error with not gcc compilers
sql-common/client.c:
Fixed spelling error
sql/sql_parse.cc:
Added comment
Diffstat (limited to 'sql/sql_parse.cc')
-rw-r--r-- | sql/sql_parse.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index 3f734dbbdac..09e04e6a2f9 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -413,7 +413,11 @@ int check_user(THD *thd, enum enum_server_command command, } } - /* Why logging is performed before all checks've passed? */ + /* + Log the command before authentication checks, so that the user can + check the log for the tried login tried and also to detect + break-in attempts. + */ general_log_print(thd, command, (thd->main_security_ctx.priv_user == thd->main_security_ctx.user ? |