]> git.proxmox.com Git - proxmox.git/commit
add TtyOutpu helper and use it for read_password
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 9 Jun 2020 09:16:41 +0000 (11:16 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 9 Jun 2020 09:16:41 +0000 (11:16 +0200)
commitc927b5ebba06c8fdb6bfa1cd692cc42ef028b248
treed21b56d615c760bf02d265aa7070e753951c33a2
parent620775d2679f61283e3695c0a462fe260fa195cc
add TtyOutpu helper and use it for read_password

This way read_password() will not write the prompt into
stdout if stdout was redirected into a file, but instead
opens `/dev/tty`.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
proxmox/src/sys/linux/tty.rs