pt-show-grant --ask-pass prints "Enter password" to STDOUT

Bug #1290911 reported by Michael Wang on 2014-03-11
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Toolkit moved to
Fix Released
Frank Cizmich

Bug Description

$ /usr/bin/pt-show-grants -uroot --ask-pass > 1.1
$ grep Enter 1.1
Enter password:

$ /usr/bin/pt-show-grants --version
pt-show-grants 2.2.5

# mysql --version
mysql Ver 14.14 Distrib 5.6.16, for Linux (x86_64) using EditLine wrapper

The tool should print "Enter password:" in stderr so that you can see it, and
the stdout can be run directly.

Related branches

This is easy to confirm:

openxs@ao756:~$ pt-show-grants -uroot --ask-pass --host= --port=3306 >/tmp/grants.txt
openxs@ao756:~$ grep Enter /tmp/grants.txt Enter password:
openxs@ao756:~$ pt-show-grants --version pt-show-grants 2.2.7

Changed in percona-toolkit:
status: New → Confirmed
tags: added: option-parsing pt-show-grant
Changed in percona-toolkit:
milestone: none → 2.2.8
assignee: nobody → Frank Cizmich (frank-cizmich)
status: Confirmed → In Progress
importance: Undecided → Low
Changed in percona-toolkit:
status: In Progress → Fix Committed
summary: - pt-show-grant --ask-pass print "Enter password" in stdout
+ pt-show-grant --ask-pass prints "Enter password" to STDOUT
Changed in percona-toolkit:
status: Fix Committed → Fix Released

Percona now uses JIRA for bug reports so this bug report is migrated to:

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers