diff options
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 |