Skip to content

Commit

Permalink
Merge pull request #44 from PierreBeucher/fix-tmp-permission
Browse files Browse the repository at this point in the history
fix: incorrect permission for /tmp subdirectory when fallbacking from…
  • Loading branch information
PierreBeucher authored Aug 18, 2023
2 parents 7af18cd + 1056c60 commit 53847da
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 53847da

Please sign in to comment.