Bug #3227 SHOW PRIVILEGES displays incorrect privilege name
Submitted: 18 Mar 2004 10:26 Modified: 24 Mar 2004 14:07
Reporter: Paul DuBois Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server Severity:S3 (Non-critical)
Version:4.1 OS:
Assigned to: Sergei Golubchik CPU Architecture:Any

[18 Mar 2004 10:26] Paul DuBois
Description:
SHOW PRIVILEGES displays a row for the "Grant" privilege.
The privilege name is "Grant option".

How to repeat:
Run SHOW PRIVILEGES;

Suggested fix:
===== sql_show.cc 1.152 vs edited =====
--- 1.152/sql/sql_show.cc	Mon Mar 15 19:01:43 2004
+++ edited/sql_show.cc	Thu Mar 18 12:23:12 2004
@@ -233,7 +233,7 @@
   {"Alter",  "Tables",  "To alter the table"},
   {"Create", "Databases,Tables,Indexes",  "To create new databases and tables"},
   {"Drop",   "Databases,Tables", "To drop databases and tables"},
-  {"Grant",  "Databases,Tables", "To give to other users those privileges you possess"},
+  {"Grant option",  "Databases,Tables", "To give to other users those privileges you possess"},
   {"References", "Databases,Tables", "To have references on tables"},
   {"Reload",  "Server Admin", "To reload or refresh tables, logs and privileges"},
   {"Shutdown","Server Admin", "To shutdown the server"},
[24 Mar 2004 14:07] Sergei Golubchik
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html

Additional info:

fixed in 4.1.2