mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Bug #45120 Fix of 44922 caused regression in funcs_1.processlist_priv_no_prot
Protected '' in connect command with ""
This commit is contained in:
@@ -212,7 +212,7 @@ GRANT PROCESS ON *.* TO ''@'localhost';
|
|||||||
--echo anonymous user with PROCESS privilege
|
--echo anonymous user with PROCESS privilege
|
||||||
--echo SHOW/SELECT shows all processes/threads.
|
--echo SHOW/SELECT shows all processes/threads.
|
||||||
--echo ####################################################################################
|
--echo ####################################################################################
|
||||||
connect (anonymous1,localhost,'',,information_schema);
|
connect (anonymous1,localhost,"''",,information_schema);
|
||||||
SHOW GRANTS;
|
SHOW GRANTS;
|
||||||
--replace_column 1 ID 3 HOST_NAME 6 TIME
|
--replace_column 1 ID 3 HOST_NAME 6 TIME
|
||||||
SHOW processlist;
|
SHOW processlist;
|
||||||
@@ -253,7 +253,7 @@ REVOKE PROCESS ON *.* FROM ''@'localhost';
|
|||||||
|
|
||||||
--echo ####################################################################################
|
--echo ####################################################################################
|
||||||
--echo 7.1 New connection (anonymous2,localhost,'',,information_schema)
|
--echo 7.1 New connection (anonymous2,localhost,'',,information_schema)
|
||||||
connect (anonymous2,localhost,'',,information_schema);
|
connect (anonymous2,localhost,"''",,information_schema);
|
||||||
--echo The anonymous user has no more the PROCESS privilege
|
--echo The anonymous user has no more the PROCESS privilege
|
||||||
--echo Again only the processes of the anonymous user are visible.
|
--echo Again only the processes of the anonymous user are visible.
|
||||||
--echo ####################################################################################
|
--echo ####################################################################################
|
||||||
|
Reference in New Issue
Block a user