From dca71e62d29b8ccf4b926797fab331e16611e3ff Mon Sep 17 00:00:00 2001 From: Aiden McClelland Date: Tue, 15 Feb 2022 17:29:40 -0700 Subject: [PATCH] cleaner ecryptfs invocation --- backend/src/disk/mount/filesystem/ecryptfs.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/disk/mount/filesystem/ecryptfs.rs b/backend/src/disk/mount/filesystem/ecryptfs.rs index 7582163a3..d1b27c712 100644 --- a/backend/src/disk/mount/filesystem/ecryptfs.rs +++ b/backend/src/disk/mount/filesystem/ecryptfs.rs @@ -24,13 +24,13 @@ pub async fn mount_ecryptfs, P1: AsRef>( .arg(dst.as_ref()) .arg("-o") // for more information `man ecryptfs` - .arg(format!("key=passphrase:passphrase_passwd={},ecryptfs_cipher=aes,ecryptfs_key_bytes=32,ecryptfs_passthrough=n,ecryptfs_enable_filename_crypto=y", key)) + .arg(format!("key=passphrase:passphrase_passwd={},ecryptfs_cipher=aes,ecryptfs_key_bytes=32,ecryptfs_passthrough=n,ecryptfs_enable_filename_crypto=y,no_sig_cache", key)) .stdin(std::process::Stdio::piped()) .stderr(std::process::Stdio::piped()) .spawn()?; let mut stdin = ecryptfs.stdin.take().unwrap(); let mut stderr = ecryptfs.stderr.take().unwrap(); - stdin.write_all(b"\nyes\nno").await?; + stdin.write_all(b"\n").await?; stdin.flush().await?; stdin.shutdown().await?; drop(stdin);