From 79a3fe66a67d429501d056f0aa7219da253e4365 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sosth=C3=A8ne=20Gu=C3=A9don?= Date: Wed, 26 Apr 2023 14:06:29 +0200 Subject: [PATCH] Fix application salt path The path was duplicated because it is added in the filestore and in the salt path string --- src/backend/data.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/backend/data.rs b/src/backend/data.rs index 060fb9b..c51d49d 100644 --- a/src/backend/data.rs +++ b/src/backend/data.rs @@ -17,7 +17,7 @@ use trussed::{ }; use super::Error; -use crate::{Pin, PinId, BACKEND_DIR, MAX_PIN_LENGTH}; +use crate::{Pin, PinId, MAX_PIN_LENGTH}; pub(crate) const SIZE: usize = 256; pub(crate) const CHACHA_TAG_LEN: usize = 16; @@ -498,7 +498,6 @@ fn app_salt_path() -> PathBuf { const SALT_PATH: &str = "application_salt"; let mut path = PathBuf::new(); - path.push(&PathBuf::from(BACKEND_DIR)); path.push(&PathBuf::from(SALT_PATH)); path }