summaryrefslogtreecommitdiffhomepage
path: root/mullvad-problem-report
diff options
context:
space:
mode:
authorDavid Lönnhager <david.l@mullvad.net>2021-01-08 16:32:31 +0100
committerDavid Lönnhager <david.l@mullvad.net>2021-01-12 16:10:21 +0100
commit00885edcf042d4ae45eed26c2f5c2c67bc5de9ec (patch)
treec9dcf02bfc652d32ac90ecefb3dc452975699141 /mullvad-problem-report
parent12ca4a60bf3455132aed849ad8d5df87cd919d35 (diff)
downloadmullvadvpn-00885edcf042d4ae45eed26c2f5c2c67bc5de9ec.tar.xz
mullvadvpn-00885edcf042d4ae45eed26c2f5c2c67bc5de9ec.zip
Replace the old cache directory
Diffstat (limited to 'mullvad-problem-report')
-rw-r--r--mullvad-problem-report/src/lib.rs4
-rw-r--r--mullvad-problem-report/src/main.rs4
2 files changed, 4 insertions, 4 deletions
diff --git a/mullvad-problem-report/src/lib.rs b/mullvad-problem-report/src/lib.rs
index f4ee9d73ae..9bd1fba185 100644
--- a/mullvad-problem-report/src/lib.rs
+++ b/mullvad-problem-report/src/lib.rs
@@ -256,7 +256,7 @@ pub fn send_problem_report(
user_email: &str,
user_message: &str,
report_path: &Path,
- user_cache_dir: &Path,
+ cache_dir: &Path,
) -> Result<(), Error> {
let report_content = normalize_newlines(
read_file_lossy(report_path, REPORT_MAX_SIZE).map_err(|source| {
@@ -279,7 +279,7 @@ pub fn send_problem_report(
.block_on(mullvad_rpc::MullvadRpcRuntime::with_cache(
runtime.handle().clone(),
None,
- user_cache_dir,
+ cache_dir,
false,
|_| Ok(()),
))
diff --git a/mullvad-problem-report/src/main.rs b/mullvad-problem-report/src/main.rs
index 4f0dfb0265..9a6189a610 100644
--- a/mullvad-problem-report/src/main.rs
+++ b/mullvad-problem-report/src/main.rs
@@ -113,8 +113,8 @@ fn run() -> Result<(), Error> {
let report_path = Path::new(send_matches.value_of_os("report").unwrap());
let user_email = send_matches.value_of("email").unwrap_or("");
let user_message = send_matches.value_of("message").unwrap_or("");
- let user_cache_dir = mullvad_paths::get_user_cache_dir()?;
- send_problem_report(user_email, user_message, report_path, &user_cache_dir)
+ let cache_dir = mullvad_paths::get_cache_dir()?;
+ send_problem_report(user_email, user_message, report_path, &cache_dir)
} else {
unreachable!("No sub command given");
}