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

Bug #1290911 reported by Michael Wang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Toolkit moved to https://jira.percona.com/projects/PT
Fix Released
Low
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

Revision history for this message
Valerii Kravchuk (valerii-kravchuk) wrote :

This is easy to confirm:

openxs@ao756:~$ pt-show-grants -uroot --ask-pass --host=127.0.0.1 --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
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PT-807

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.