drizzledump (and other clients?) should print Password: prompt on stderr

Bug #653234 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

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.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
[clint@xen ~]$ rpm -qi boost-program-options
Name : boost-program-options Relocations: (not relocatable)
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/Libraries Source RPM: boost-1.44.0-1.fewbar0.src.rpm
Size : 4194276 License: Boost
Signature : (none)
URL : http://www.boost.org
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.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: CentOS
Description: CentOS release 5 (Final)
Release: 5
Codename: Final

Related branches

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
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers