]> git.sesse.net Git - bcachefs-tools-debian/commit
fix reading keys from non-tty inputs
authorJörg Thalheim <joerg@thalheim.io>
Thu, 15 Jun 2023 17:08:41 +0000 (19:08 +0200)
committerJörg Thalheim <joerg@thalheim.io>
Thu, 15 Jun 2023 17:11:54 +0000 (19:11 +0200)
commit9090bf3c36bbfaffffd6581f2ac2a8dcc2e4c5cd
treeb5535f403caef7fedd9c1ef468350018581c979c
parent3ab89de5fa2503810772539e958c42a29837947f
fix reading keys from non-tty inputs

read_password_from_tty doesn't have a fallback if input is a pipe.
This makes scripting and integration testing harder.

Noticed while updating our nixos integration test.

Signed-off-by: Jörg Thalheim <joerg@thalheim.io>
rust-src/src/key.rs