From 278c40ecfa743557efb0e15a1758003098e36c1b Mon Sep 17 00:00:00 2001 From: oluceps Date: Sun, 15 Sep 2024 02:27:03 +0800 Subject: [PATCH] ~ --- src/cmd/deploy.rs | 5 ++++- src/cmd/renc_sec_path.rs | 1 + ...a2a9f7305f210128dd6f98f7a-factorio-admin.age | Bin 375 -> 343 bytes ...b0974360dd2d93e3de475a84-factorio-server.age | 15 +++++++-------- 4 files changed, 12 insertions(+), 9 deletions(-) diff --git a/src/cmd/deploy.rs b/src/cmd/deploy.rs index 26014aa..8e632f2 100644 --- a/src/cmd/deploy.rs +++ b/src/cmd/deploy.rs @@ -17,7 +17,10 @@ impl Profile { let storage = PathBuf::from(&self.settings.storage_dir_store); fs::read_dir(storage)?.for_each(|entry| { let entry = entry.expect("enter store, must success"); - let path = entry.path(); + let path = entry + .path() + .canonicalize() + .expect("file path initialize error"); let name = entry.file_name().to_string_lossy().to_string(); debug!("record secret name from store: {}", name); let content = fs::read(path).expect("reading store, must success"); diff --git a/src/cmd/renc_sec_path.rs b/src/cmd/renc_sec_path.rs index 18b5315..b69721b 100644 --- a/src/cmd/renc_sec_path.rs +++ b/src/cmd/renc_sec_path.rs @@ -1,5 +1,6 @@ use std::path::PathBuf; +use eyre::Context; use sha2::{Digest, Sha256}; use spdlog::{debug, info}; diff --git a/test/secrets/renced/tester/1b91d07a2a9f7305f210128dd6f98f7a-factorio-admin.age b/test/secrets/renced/tester/1b91d07a2a9f7305f210128dd6f98f7a-factorio-admin.age index afe5baba8eade6b7e2945b7d18ea07ec886d51ec..defb3ed05cf05963241eb049b3d2fcdf37f6b6f0 100644 GIT binary patch delta 308 zcmV-40n7gP0@nhNEPqOPHE?=KQCE0cD`j<6F)&nYPIxwUSy5_PV`*V-N_to_azijf zLUB}XZwga(Wo&3`LQqF!OHyxSYC=XzNP2QmcY1MbX>luSOiD6ROm{+fPb7dehZc}+tAXq?mN^(~qDPwR%E+Bd-Kv^tQXnzW2Wo2u5RZduSN@X@o zSz1ywaWz(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|RtDX Wp \ No newline at end of file