Skip to content

Commit

Permalink
fix: incorrect permission for /tmp subdirectory when fallbacking from…
Browse files Browse the repository at this point in the history
… XDG_RUNTIME_DIR

never saw that before, probably because it's mostly used by containers running as root
  • Loading branch information
PierreBeucher committed Aug 18, 2023
1 parent 7af18cd commit 1056c60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ fn prepare_working_directory_tmp(app_name: &String, env_name: &String) -> Result
fs::create_dir_all(&user_workdir)
.with_context(|| format!("Couldn't create user working directory {:?}", &user_workdir))?;

fs::set_permissions(&user_workdir, fs::Permissions::from_mode(0o0600))
fs::set_permissions(&user_workdir, fs::Permissions::from_mode(0o0700))
.with_context(|| format!("Couldn't set permission on user working directory {:?}", &user_workdir))?;

// create current app/env workdir under user workdir
Expand Down

0 comments on commit 1056c60

Please sign in to comment.