pt-show-grant --ask-pass prints "Enter password" to STDOUT
Bug #1290911 reported by
Michael Wang
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/
$ grep Enter 1.1
Enter password:
$ /usr/bin/
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
lp:~percona-toolkit-dev/percona-toolkit/pt-show-grant-ask-pass-print-Enter-password-in-stdout-1290911
- Daniel Nichter: Approve
-
Diff: 394 lines (+56/-27)28 files modifiedbin/pt-agent (+1/-1)
bin/pt-align (+1/-1)
bin/pt-archiver (+1/-1)
bin/pt-config-diff (+1/-1)
bin/pt-deadlock-logger (+1/-1)
bin/pt-diskstats (+1/-1)
bin/pt-duplicate-key-checker (+1/-1)
bin/pt-fifo-split (+1/-1)
bin/pt-find (+1/-1)
bin/pt-fingerprint (+1/-1)
bin/pt-fk-error-logger (+1/-1)
bin/pt-heartbeat (+1/-1)
bin/pt-index-usage (+1/-1)
bin/pt-kill (+1/-1)
bin/pt-online-schema-change (+1/-1)
bin/pt-query-digest (+1/-1)
bin/pt-show-grants (+1/-1)
bin/pt-slave-delay (+1/-1)
bin/pt-slave-find (+1/-1)
bin/pt-slave-restart (+1/-1)
bin/pt-table-checksum (+1/-1)
bin/pt-table-sync (+1/-1)
bin/pt-table-usage (+1/-1)
bin/pt-upgrade (+1/-1)
bin/pt-variable-advisor (+1/-1)
bin/pt-visual-explain (+1/-1)
lib/OptionParser.pm (+1/-1)
t/lib/OptionParser.t (+29/-0)
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 |
To post a comment you must log in.
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