getpass: Don't fail if stdin is not a tty
commitca0d38596d711e70a1d58657024aabd8c131512b
authorStef Walter <stefw@gnome.org>
Thu, 4 Apr 2013 13:55:10 +0000 (4 15:55 +0200)
committerAlexander Bokovoy <ab@samba.org>
Fri, 5 Apr 2013 05:34:37 +0000 (5 07:34 +0200)
tree9a35623e78261a2d21a872bb2ae46961990da814
parent7f366d745c1d4e833470d853ec484459157616e7
getpass: Don't fail if stdin is not a tty

We don't need to manipulate the tty state (such as turning off
echo) when prompting for passwords if we're not reading from a tty.

Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
Autobuild-User(master): Alexander Bokovoy <ab@samba.org>
Autobuild-Date(master): Fri Apr  5 07:34:37 CEST 2013 on sn-devel-104
lib/util/getpass.c