"Enter password" prompt should not print stars, or erase them on enter
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-
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
- Drizzle Merge Team: Pending requested
-
Diff: 73 lines (+10/-15)1 file modifiedclient/get_password.cc (+10/-15)
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 |