]> git.proxmox.com Git - pve-common.git/commitdiff
read_password improvements
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 13 Dec 2017 10:47:23 +0000 (11:47 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 13 Dec 2017 13:49:14 +0000 (14:49 +0100)
* Cancel on Ctrl+C (die())
* Finish on Ctrl+D (eof/eot) without appending a newline
* Also finish on \n to be sure.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Tested-by: Thomas Lamprecht <t.lamprecht@proxmox.com>

No differences found