From c277230e0a363f0e0436db0f07063bb2b7d28b22 Mon Sep 17 00:00:00 2001 From: hu55a1n1 Date: Mon, 26 Feb 2024 14:10:45 -0800 Subject: [PATCH] Fix tempdir usage --- utils/quartz-relayer/src/main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/utils/quartz-relayer/src/main.rs b/utils/quartz-relayer/src/main.rs index 1e5fb29..4c277f5 100644 --- a/utils/quartz-relayer/src/main.rs +++ b/utils/quartz-relayer/src/main.rs @@ -26,16 +26,16 @@ async fn main() -> Result<(), Box> { let datareport_file_path = dir.path().join("datareport"); let datareportsig_file_path = dir.path().join("datareportsig"); - let mut quote_file = File::create(quote_file_path)?; + let mut quote_file = File::create(quote_file_path.clone())?; quote_file.write_all(response.quote())?; let gramine_sgx_ias_request_output = Command::new("gramine-sgx-ias-request") .arg("report") .args(["-g", "51CAF5A48B450D624AEFE3286D314894"]) .args(["-k", "669244b3e6364b5888289a11d2a1726d"]) - .args(["-q", quote_file_path]) - .args(["-r", datareport_file_path]) - .args(["-s", datareportsig_file_path]) + .args(["-q", "e_file_path.display().to_string()]) + .args(["-r", &datareport_file_path.display().to_string()]) + .args(["-s", &datareportsig_file_path.display().to_string()]) .output()?; println!("{gramine_sgx_ias_request_output:?}");