drizzledump (and other clients?) should print Password: prompt on stderr
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Drizzle |
Fix Released
|
Medium
|
Andrew Hutchings | ||
7.0 |
Fix Released
|
Medium
|
Andrew Hutchings |
Bug Description
When doing a command like this:
drizzledump --password > dump.sql
The password prompt does not show on the controlling terminal.
Would suggest displaying it on stderr OR grabbing the process's controlling terminal if available and printing it there.
==== Test case ====
Note: no password prompt
[clint@xen ~]$ drizzledump --password -u root --all-databases --host localhost > /dev/null
Got error: 23 when trying to connect
terminate called without an active exception
Aborted
Without redirection:
[clint@xen ~]$ drizzledump --password -u root --all-databases --host localhost
Enter password:
Got error: 23 when trying to connect
terminate called without an active exception
Aborted
==== Additional info ====
[clint@xen ~]$ drizzledump --version
Drizzledump 7 build 2010.09.1802, for pc-linux-gnu (i686)
[clint@xen ~]$ lsb_release
LSB Version: :core-3.
[clint@xen ~]$ rpm -qi boost-program-
Name : boost-program-
Version : 1.44.0 Vendor: (none)
Release : 1.fewbar0 Build Date: Thu 30 Sep 2010 02:27:15 PM PDT
Install Date: Thu 30 Sep 2010 03:14:30 PM PDT Build Host: xen.spamaps.org
Group : System Environment/
Size : 4194276 License: Boost
Signature : (none)
URL : http://
Summary : Runtime component of boost program_options library
Description :
Runtime support of boost program options library, which allows program
developers to obtain (name, value) pairs from the user, via
conventional methods such as command line and configuration file.
[clint@xen ~]$ lsb_release -a
LSB Version: :core-3.
Distributor ID: CentOS
Description: CentOS release 5 (Final)
Release: 5
Codename: Final
Related branches
- Drizzle Merge Team: Pending requested
-
Diff: 73 lines (+10/-15)1 file modifiedclient/get_password.cc (+10/-15)
description: | updated |
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 |