diff options
author | Jesse Luehrs <doy@tozt.net> | 2020-07-07 21:56:19 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2020-07-07 21:56:19 -0400 |
commit | b1600a80d26e91ece6d9b20a72dc2b0c1f66d271 (patch) | |
tree | a4a28b8fe603ab251aaa125584f27699b26cd218 /src | |
parent | 5200d2a133b50b0ce9bfe79ec59177d3a0ccc595 (diff) | |
download | rbw-b1600a80d26e91ece6d9b20a72dc2b0c1f66d271.tar.gz rbw-b1600a80d26e91ece6d9b20a72dc2b0c1f66d271.zip |
disable pinentry timeouts
Diffstat (limited to 'src')
-rw-r--r-- | src/pinentry.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pinentry.rs b/src/pinentry.rs index 9d866de..a215547 100644 --- a/src/pinentry.rs +++ b/src/pinentry.rs @@ -13,9 +13,9 @@ pub async fn getpin( .stdin(std::process::Stdio::piped()) .stdout(std::process::Stdio::piped()); let opts = if let Some(tty) = tty { - opts.args(&["-T", tty]) + opts.args(&["-T", tty, "-o", "0"]) } else { - opts + opts.args(&["-o", "0"]) }; let mut child = opts.spawn().context(crate::error::Spawn)?; // unwrap is safe because we specified stdin as piped in the command opts |