"Enter password" prompt should not print stars, or erase them on enter

Bug #653438 reported by Clint Byrum
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Drizzle
Fix Released
Medium
Andrew Hutchings
7.0
Fix Released
Medium
Andrew Hutchings

Bug Description

[clint@xen ~]$ drizzledump -p 3306 -h 127.0.0.1 -u root --all-databases --password --destination-type=database --destination-host=127.0.0.1 --destination-port=3307 --verbose
Enter password: ******
-- Connecting to 127.0.0.1 using protocol MySQL...

You now know that my password is 6 characters long.

The best solution (but least user friendly) is to not print anything.

If you must print stars, you can print a whole bunch after pressing enter up to a standard length. This way in a raw dump from the terminal, you always get the same number of *'s.

The least desirable solution would be to erase them. This would do nothing to obscure it if somebody has a terminal output scrape (such as one might get from running the program 'script').

Related branches

Changed in drizzle:
assignee: nobody → Andrew Hutchings (linuxjedi)
importance: Undecided → Medium
milestone: none → 2010-10-11
status: New → Triaged
Changed in drizzle:
milestone: 2010-10-11 → 2010-10-25
Changed in drizzle:
status: Triaged → Fix Committed
Changed in drizzle:
status: Fix Committed → Fix Released
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.