We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5b0a82 commit 81139f6Copy full SHA for 81139f6
1 file changed
src/download/mod.rs
@@ -47,7 +47,7 @@ impl LockedFile {
47
return Ok(Self { path, file });
48
}
49
50
- // Otherwise, create a temporary file with 777 permissions, to handle races between
+ // Otherwise, create a temporary file with 666 permissions, to handle races between
51
// processes running under different UIDs (e.g., in Docker containers). We must set
52
// permissions _after_ creating the file, to override the `umask`.
53
let file = if let Some(parent) = path.parent() {
@@ -57,7 +57,7 @@ impl LockedFile {
57
};
58
if let Err(err) = file
59
.as_file()
60
- .set_permissions(std::fs::Permissions::from_mode(0o777))
+ .set_permissions(std::fs::Permissions::from_mode(0o666))
61
{
62
warn!("failed to set permissions on temporary file: {err}");
63
0 commit comments