Skip to content

Commit 81139f6

Browse files
authored
1 parent a5b0a82 commit 81139f6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/download/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ impl LockedFile {
4747
return Ok(Self { path, file });
4848
}
4949

50-
// Otherwise, create a temporary file with 777 permissions, to handle races between
50+
// Otherwise, create a temporary file with 666 permissions, to handle races between
5151
// processes running under different UIDs (e.g., in Docker containers). We must set
5252
// permissions _after_ creating the file, to override the `umask`.
5353
let file = if let Some(parent) = path.parent() {
@@ -57,7 +57,7 @@ impl LockedFile {
5757
};
5858
if let Err(err) = file
5959
.as_file()
60-
.set_permissions(std::fs::Permissions::from_mode(0o777))
60+
.set_permissions(std::fs::Permissions::from_mode(0o666))
6161
{
6262
warn!("failed to set permissions on temporary file: {err}");
6363
}

0 commit comments

Comments
 (0)