Bug #74847 global variable grant_option is unused
Submitted: 14 Nov 2014 0:57 Modified: 18 Nov 2014 15:42
Reporter: Stewart Smith Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Security: Privileges Severity:S3 (Non-critical)
Version:5.7.5 OS:Any
Assigned to: CPU Architecture:Any

[14 Nov 2014 0:57] Stewart Smith
Description:
While grepping for bugs, I found grant_option, which is declared as a global in mysqld.cc but is completely unused.

How to repeat:
code analysis!

Suggested fix:
remove it! (patch attached)
[14 Nov 2014 0:58] Stewart Smith
remove unused global grant_option

(*) I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.

Contribution: remove-unused-grant_option.patch (text/x-patch), 991 bytes.

[14 Nov 2014 5:18] MySQL Verification Team
Hello Stewart,

Thank you for the report and contribution.

Thanks,
Umesh
[14 Nov 2014 5:20] MySQL Verification Team
trunk grep results for grant_option

Attachment: 74847_trunk_grep.txt (text/plain), 8.90 KiB.

[18 Nov 2014 15:42] Paul DuBois
Noted in 5.7.6 changelog.

Removed the unused grant_option global variable from mysqld.cc.
Thanks to Stewart Smith for the patch.