[PATCH] getpass: Don't fail if stdin is not a tty
authorAlexander Bokovoy <ab@samba.org>
Thu, 11 Apr 2013 07:45:12 +0000 (09:45 +0200)
committerKarolin Seeger <kseeger@samba.org>
Thu, 11 Apr 2013 09:35:07 +0000 (11:35 +0200)
commit4bebda4da425a38046b14afaaa76921bb49de75e
tree2710a896c05d3b48946e84370a226ce0f013e14f
parent077865de2d788f5e4eabe2f610be23791dfce117
[PATCH] 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.

Backport based on a patch provided by Stef Walter <stefw@gnome.org>.

Fix bug #9767 - "net ads join" fails when called via stdin.

Autobuild-User(v4-0-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-0-test): Thu Apr 11 11:35:07 CEST 2013 on sn-devel-104
lib/replace/getpass.c